[Bug 17201] HTMLCollection.prototype.namedItem behavior not defined for HTMLPropertiesCollection

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17201

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dzbarsky@gmail.com

--- Comment #1 from Boris Zbarsky <bzbarsky@mit.edu> 2012-05-25 23:26:19 UTC ---
In particular, the spec for HTMLPropertiesCollection says:

    legacycaller getter PropertyNodeList? namedItem(DOMString name); //
overrides inherited namedItem()

But the "inherited" namedItem can still be applied to HTMLPropertiesCollection
objects, and the behavior of that needs to be defined.  HTMLCollection says in
an informative note:

  The namedItem() method returns an object for interfaces that inherit from
this
  interface, which return other objects for historical reasons. 

and the IDL is:

    getter object? namedItem(DOMString name);

so what you probably want to do here is not override it at all and just say in
normative prose that the object returned, if any, is a PropertyNodeList.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 25 May 2012 23:26:22 UTC