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/>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6036

           Summary: HTMLCollection.namedItem() should look for non-HTML
                    elements
           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
namedItem().)"

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 : Monday, 29 September 2014 09:38:58 UTC