- From: Cameron McCormack <cam@mcc.id.au>
- Date: Wed, 1 Jun 2011 10:21:11 +1200
- To: Ms2ger <ms2ger@gmail.com>
- Cc: David Flanagan <dflanagan@mozilla.com>, public-script-coord@w3.org
Ms2ger:
> In any case, we can't use NamedNodeMap, as Attrs aren't Nodes.
Didn’t realise that had changed.
> 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.
>From a quick search there seems to be uses of the methods on
Element.attributes:
http://www.google.com/codesearch?q=attributes.item+lang%3Ajavascript
http://www.google.com/codesearch?q=attributes.getNamedItem+lang%3Ajavascript
http://www.google.com/codesearch?q=attributes.setNamedItem+lang%3Ajavascript
http://www.google.com/codesearch?q=attributes.removeNamedItem+lang%3Ajavascript
Less so for the NS versions. I don’t know if that counts as
significant.
--
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 31 May 2011 22:21:45 UTC