{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1595","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1595/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1595/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1595/events","html_url":"https://github.com/tmpvar/jsdom/issues/1595","id":175625413,"number":1595,"title":"Namespace support seems to be incomplete","user":{"login":"BobFrGit","id":5490484,"avatar_url":"https://avatars.githubusercontent.com/u/5490484?v=3","gravatar_id":"","url":"https://api.github.com/users/BobFrGit","html_url":"https://github.com/BobFrGit","followers_url":"https://api.github.com/users/BobFrGit/followers","following_url":"https://api.github.com/users/BobFrGit/following{/other_user}","gists_url":"https://api.github.com/users/BobFrGit/gists{/gist_id}","starred_url":"https://api.github.com/users/BobFrGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobFrGit/subscriptions","organizations_url":"https://api.github.com/users/BobFrGit/orgs","repos_url":"https://api.github.com/users/BobFrGit/repos","events_url":"https://api.github.com/users/BobFrGit/events{/privacy}","received_events_url":"https://api.github.com/users/BobFrGit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-07T22:50:32Z","updated_at":"2016-09-07T22:52:54Z","closed_at":null,"body":"I can't get it to work right. I'm assuming that it's not fully implemented in the version 9.5.0\r\n\r\nIn this example\r\n\r\n```\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:rmf=\"http://www.frankston.com/public\"><head>\r\n\r\n<span rmf:value=\"year\">2012!</span>\r\n\r\nlet rmfNS = \"http://www.frankston.com/public\";\r\nhp.setAttributeNS(rmfNS, \"test\", \"value\");\r\n\r\n<span rmf:value=\"year\" test=\"value\">2012!</span>\r\n```\r\nWhen I try to get the attribute using the NS name I get nothing. The value of hp.attributes[0] is {} (according to JSON.stringify). When I set the attribute the namespace is not set.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/245444178","html_url":"https://github.com/tmpvar/jsdom/issues/1595#issuecomment-245444178","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1595","id":245444178,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T22:52:54Z","updated_at":"2016-09-07T22:52:54Z","body":"So, we probably do have bugs here. But, some troubleshooting tips:\r\n\r\nJSON.stringify will not give useful values in jsdom, just like in the browser. I'd suggest logging hp.attributes[0].namespaceURI, localName, and prefix.\r\n\r\nIt would be ideal if you had a test that worked in https://jsbin.com, but not in jsdom, i.e. using a `<script>` element."}}
{"actor":{"display_login":"domenic"}}