W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

RE: Elements (extends Array)

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Thu, 8 Aug 2013 03:48:23 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F878A86F4@BY2PRD0510MB354.namprd05.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC