W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2010

Re: DOM collections index out of bounds and JavaScript.

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 26 Oct 2010 13:33:00 +0200
To: "Garrett Smith" <dhtmlkitchen@gmail.com>, "Erik Arvidsson" <arv@chromium.org>
Cc: "Cameron McCormack" <cam@mcc.id.au>, public-webapps@w3.org
Message-ID: <op.vk6k1anb64w2qv@anne-van-kesterens-macbook-pro.local>
On Tue, 19 Oct 2010 19:06:15 +0200, Erik Arvidsson <arv@chromium.org>  
> On Tue, Oct 19, 2010 at 09:50, Garrett Smith <dhtmlkitchen@gmail.com>  
> wrote:
>> Changing the wording for each collection would be painfully
>> repetitious, involving a spec author for each spec. There is not any
>> super interface collection defined that also defines `item`,
>> callability, property access, etc. though if there were then all
>> collection type objects inherit from that and would avoid shotgun
>> surgery. That would seem to be something for DOM 4 core, if such a
>> thing is to be written.
> WebIDL has a section for sequence but it is not fleshed out yet.

Yeah, it would be nice if sequence mapped to that so that NodeList could  
be defined as a sequence instead, same for StyleSheetList, etc. And then  
Web IDL would take care of all the details rather than each specification.

Anne van Kesteren
Received on Tuesday, 26 October 2010 11:34:17 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:28 UTC