W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Adding ECMAScript 5 array extras to HTMLCollection

From: Oliver Hunt <oliver@apple.com>
Date: Wed, 4 Aug 2010 16:47:41 -0700
Message-ID: <D7F43572-46DE-4374-B100-6C6976012416@apple.com>

On Aug 4, 2010, at 3:32 PM, Garrett Smith wrote:

> On 8/4/10, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> 
> [...]
>>  "submitButton" in form.elements
>> 
>> Existing implementations vary on when they use catchalls. I'd like to
>> see standardization for this behavior and codification so that
>> implementations behave similarly -- either use a catchall for a
>> particular type of collection or use a native object. If a catchall is
> 
> Native object either way, but either with a new ES catchall behavior
> or with a native ES object, as specified today.
> 
> Garrett
As a question, if the node lists were implemented as catchalls, how would the behaviour differ from current NodeLists?  The only change I can see would be the loss of the host object exceptions in the ES spec, but that just puts you in the position of having semantics that match the current host object behavior in those implementations that already allow array functions to operate on host objects.

--Oliver
Received on Wednesday, 4 August 2010 16:47:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:26 UTC