[Webkit-unassigned] [Bug 83439] HTMLCollection.namedItem returns a collection when there are multiple elements sharing the name

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 9 10:50:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83439


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|.namedItem doesn't return   |HTMLCollection.namedItem
                   |the right object            |returns a collection when
                   |                            |there are multiple elements
                   |                            |sharing the name
                 CC|                            |ap at webkit.org,
                   |                            |darin at apple.com,
                   |                            |mjs at apple.com,
                   |                            |pablof at motorola.com




--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2012-04-09 10:50:53 PST ---
The difference with Firefox is that our result is a NodeList, not an HTMLImageElement. Re-titling the bug accordingly.

The attached test case tests this in a very roundabout way, so we need to test what IE actually does - even if the test passes there, it might be for another reason.

I'm not sure why we have this behavior, it seems like it was intentional at some point.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list