Re: [geometry] DOMRectList with legacy

On Thu, Jul 17, 2014 at 5:56 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 7/17/14, 4:08 AM, Anne van Kesteren wrote:
>
>> Adding [ArrayClass] to a few legacy classes
>> does not help much.
>>
>
> Well, it gives you map(), foreach(), every(), some(), filter(), reduce().
>
> That's not nothing....  It seems to me that in cases when it's
> web-compatible, having [ArrayClass] on legacy lists is strictly better than
> not having it.


Making the legacy DOMRectList an [ArrayClass] wouldn't be web-compatible.
IE, WebKit and Blink don't implement it as an array class unlike Firefox.
Since this is a legacy interface, why not just specify what everyone has
implemented and leave it at that?

Received on Thursday, 17 July 2014 16:56:43 UTC