W3C home > Mailing lists > Public > public-html@w3.org > September 2008

[Bug 6036] New: HTMLCollection.namedItem() should look for non-HTML elements

From: <bugzilla@wiggum.w3.org>
Date: Sun, 07 Sep 2008 14:32:27 +0000
To: public-html@w3.org
Message-ID: <bug-6036-2495@http.www.w3.org/Bugs/Public/>


           Summary: HTMLCollection.namedItem() should look for non-HTML
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: simonp@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org

The spec says about HTMLCollection.namedItem():

"It is an HTML element of any kind with an id attribute equal to key. (Non-HTML
elements, even if they have IDs, are not searched for the purposes of

I think this should be changed to look for non-HTML elements too. It already
does in Opera and Firefox (not WebKit). There's a .children attribute on
Element that returns HTMLCollection and I think it would be silly if namedItem
only worked for HTML elements.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Sunday, 7 September 2008 14:33:02 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:38 UTC