{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2255","labels_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2255/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2255/comments","events_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2255/events","html_url":"https://github.com/w3c/web-platform-tests/issues/2255","id":111451990,"number":2255,"title":"HTMLOptionsCollection.namedItem(name) returns a single item, but tests expect NodeList","user":{"login":"keith-rollin","id":5334957,"avatar_url":"https://avatars.githubusercontent.com/u/5334957?v=3","gravatar_id":"","url":"https://api.github.com/users/keith-rollin","html_url":"https://github.com/keith-rollin","followers_url":"https://api.github.com/users/keith-rollin/followers","following_url":"https://api.github.com/users/keith-rollin/following{/other_user}","gists_url":"https://api.github.com/users/keith-rollin/gists{/gist_id}","starred_url":"https://api.github.com/users/keith-rollin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keith-rollin/subscriptions","organizations_url":"https://api.github.com/users/keith-rollin/orgs","repos_url":"https://api.github.com/users/keith-rollin/repos","events_url":"https://api.github.com/users/keith-rollin/events{/privacy}","received_events_url":"https://api.github.com/users/keith-rollin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T17:44:26Z","updated_at":"2015-10-14T18:25:40Z","closed_at":null,"body":"common-HTMLOptionsCollection-namedItem.html implements six tests. The final three invoke HTMLOptionsCollection.namedItem(name) and treat the result as a NodeList. However, according to the spec, only a single element should ever be returned:\r\n\r\nhttps://html.spec.whatwg.org/multipage/infrastructure.html#htmloptionscollection\r\n\r\n> element = collection . namedItem(name)\r\n> element = collection[name]\r\n> Returns the item with ID or name name from the collection.\r\n> If there are multiple matching items, then the first is returned.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/web-platform-tests/issues/comments/148145002","html_url":"https://github.com/w3c/web-platform-tests/issues/2255#issuecomment-148145002","issue_url":"https://api.github.com/repos/w3c/web-platform-tests/issues/2255","id":148145002,"user":{"login":"cdumez","id":995975,"avatar_url":"https://avatars.githubusercontent.com/u/995975?v=3","gravatar_id":"","url":"https://api.github.com/users/cdumez","html_url":"https://github.com/cdumez","followers_url":"https://api.github.com/users/cdumez/followers","following_url":"https://api.github.com/users/cdumez/following{/other_user}","gists_url":"https://api.github.com/users/cdumez/gists{/gist_id}","starred_url":"https://api.github.com/users/cdumez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdumez/subscriptions","organizations_url":"https://api.github.com/users/cdumez/orgs","repos_url":"https://api.github.com/users/cdumez/repos","events_url":"https://api.github.com/users/cdumez/events{/privacy}","received_events_url":"https://api.github.com/users/cdumez/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T18:25:40Z","updated_at":"2015-10-14T18:25:40Z","body":"Also note that Safari behaves according to the specification and thus fails this test."}}