RE: Elements (extends Array)

From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU]


> On 8/7/13 11:19 PM, Cameron McCormack wrote:
> > For Web IDL, if this is a feature that is needed soon, we could just allow
> >
> >    interface Elements : Array { ... };
> 
> If the intent here is to allocate an object that acts just like an Array but has additional DOM-object-like behavior, I'd be interested in feedback from implementors on how implementable this is likely to be....

I believe the intent here is to allocate an object that acts exactly like the one that you get when doing `class Elements extends Array { ... }` in ES6.

Received on Thursday, 8 August 2013 03:48:59 UTC