Re: problems with §4.2.19 Arrays

On 05/31/2011 06:14 AM, Cameron McCormack wrote:
> David Flanagan:
>> On the other hand, maybe DOM Core just needs to change attributes
>> back to a NamedNodeMap?
>
> I think so.  CCing Ms2ger.
>

In any case, we can't use NamedNodeMap, as Attrs aren't Nodes. However, 
we don't expect many pages to use attributes in other ways than by 
looping through them. In particular, even if we didn't use the WebIDL 
array type, we would replace NamedNodeMap with something like

interface AttrList {
   getter(unsigned long index);
};

unless that breaks a significant number of sites. I certainly don't 
expect to change the specification until it has been implemented by a 
mainstream browser.

Ms2ger

Received on Tuesday, 31 May 2011 11:02:34 UTC