This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
Should it still look just at id attributes in that case though? Or ID attributes?
I don't really care either way. (Or well, I'd *like* XML ID 5 that makes all 'id' attributes of type ID.) Firefox looks at 'id' attributes on any element. Opera looks at 'id' attributes on HTML and SVG elements.