{"action":"closed","issue":{"url":"https://api.github.com/repos/whatwg/dom/issues/104","labels_url":"https://api.github.com/repos/whatwg/dom/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/dom/issues/104/comments","events_url":"https://api.github.com/repos/whatwg/dom/issues/104/events","html_url":"https://github.com/whatwg/dom/issues/104","id":115179409,"number":104,"title":"HTMLCollection.namedItem() vs supported property names ","user":{"login":"ArkadiuszMichalski","id":2730894,"avatar_url":"https://avatars.githubusercontent.com/u/2730894?v=3","gravatar_id":"","url":"https://api.github.com/users/ArkadiuszMichalski","html_url":"https://github.com/ArkadiuszMichalski","followers_url":"https://api.github.com/users/ArkadiuszMichalski/followers","following_url":"https://api.github.com/users/ArkadiuszMichalski/following{/other_user}","gists_url":"https://api.github.com/users/ArkadiuszMichalski/gists{/gist_id}","starred_url":"https://api.github.com/users/ArkadiuszMichalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArkadiuszMichalski/subscriptions","organizations_url":"https://api.github.com/users/ArkadiuszMichalski/orgs","repos_url":"https://api.github.com/users/ArkadiuszMichalski/repos","events_url":"https://api.github.com/users/ArkadiuszMichalski/events{/privacy}","received_events_url":"https://api.github.com/users/ArkadiuszMichalski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-05T00:11:07Z","updated_at":"2015-11-11T09:51:40Z","closed_at":"2015-11-11T09:51:40Z","body":"At the beginning, in supported property names  definition I see this:\r\n\"2.1. If element has an ID which is neither the empty string nor is in result, append element’s ID to result.\" << why this \" empty string\" exist here? We operate on ID (as concept, not `id` attribute) so it's possible that ID will ever be empty string?\r\n\r\nSecond is about how this two definitions handle attribute name (for element in not HTML namespce), this is intentional? I see that Firefox and Chrome have different behaviour. In the middle I also try check IE11 but this browser has other problem (when we create element inside script it produces different results) so focus only Firefox and Chrome.\r\n\r\nFirefox - works the same for `HTMLCollection.namedItem()` and `[]`, treat all elements in the same way, without paying attention to the HTML namespace for element with `name` attribute.\r\n\r\nChrome - works the same for `HTMLCollection.namedItem()` and `[]`, treat all elements in the same way, paying attention to the HTML namespace for element with `name` attribute.\r\n\r\nAnd spec:\r\nhttps://dom.spec.whatwg.org/#dom-htmlcollection-nameditem\r\n`HTMLCollection.namedItem()`  - without paying attention to the HTML namespace for element with `name` attribute\r\n\r\nhttps://dom.spec.whatwg.org/#dom-htmlcollection-item\r\nSupported property names - paying attention to the HTML namespace for element with `name` attribute\r\n\r\nIt concerns only `name` attribute (content attribute), `id` attribute (content attribute) works correct in Firefox and Chrome (as we have in DOM)."}}