W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2017

Re: [geometry] DOMRectReadOnly serializer

From: Simon Pieters <simonp@opera.com>
Date: Tue, 13 Jun 2017 15:42:18 +0200
To: public-fx@w3.org, "Simon Fraser" <smfr@me.com>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "gogag2@gmail.com" <gogag2@gmail.com>, "Jinho Bang" <jinho.bang@samsung.com>, cdumez@apple.com
Message-ID: <op.y1rxospaidj3kv@simons-mbp.lan>
On Wed, 02 Nov 2016 10:59:31 +0100, Simon Pieters <simonp@opera.com> wrote:

> On Sat, 15 Oct 2016 23:47:29 +0200, Simon Fraser <smfr@me.com> wrote:
>
>> https://drafts.fxtf.org/geometry/#DOMRect  
>> <https://drafts.fxtf.org/geometry/#DOMRect>
>>
>> I think it’s a bit weird that DOMRectReadOnly uses "serializer = {  
>> attribute }”, since that will serialize all of { x, y, width, height,  
>> top, right, bottom, left }. I think it would make more sense to only  
>> serialize { x, y, width, height } since those are the underlying data.
>>
>> Simon
>
> Previous emails on this topic:
>
> https://lists.w3.org/Archives/Public/public-fx/2014OctDec/0099.html
> https://lists.w3.org/Archives/Public/public-fx/2014OctDec/0100.html
> https://lists.w3.org/Archives/Public/public-fx/2014OctDec/0108.html
>
> Spec changes:
>
> https://github.com/w3c/fxtf-drafts/commit/75c3961700dcd8c8dde1d4fa16dba3fd1b717e17
> https://github.com/w3c/fxtf-drafts/commit/7b5664a99dff3a3c3afd5085c65fea7ad7791d9c
>
> So there were no strong opinions on this previously and we went with the  
> simple thing to serialize all members. I suppose it is still possible to  
> change this though...

Test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5242

Currently WebKit and Chromium do what the spec says, and Gecko serializes  
to "{}".

Should we leave this as-is in the spec, or do y'all want to change?

-- 
Simon Pieters
Opera Software
Received on Tuesday, 13 June 2017 13:42:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:59 UTC