Re: [geometry] DOMRectReadOnly serializer

On Sat, Oct 15, 2016 at 2:47 PM, Simon Fraser <smfr@me.com> wrote:

> 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.
>

That is indeed an odd addition.
Looking at
https://lists.w3.org/Archives/Public/public-fx/2016JanMar/0014.html, it
looks like a WebIDL requirement.
Boris, SimonP, can you comment on this?

Received on Sunday, 16 October 2016 16:47:00 UTC