{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/705","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/705/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/705/events","html_url":"https://github.com/tmpvar/jsdom/issues/705","id":24659726,"number":705,"title":"namespaceURI property missing?","user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tmpvar/jsdom/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/tmpvar/jsdom/labels/dom%20living%20standard","name":"dom living standard","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-12-21T04:01:29Z","updated_at":"2015-06-26T12:52:28Z","closed_at":"2015-06-26T12:52:28Z","body":"I'm doing some DOM validation work using html\r\n```\r\nvar html = \"<html><body><p>test</p><svg width='100' height='100' viewbox='0 0 100 100'><path d='\"+d+\"'/></svg><p>test</p></body></html>\";\r\n```\r\n\r\nand it appears that HTML nodes are not given their correct namespaceURI property. This, for instance, returns `null`:  `console.error(\"DOM: \", require(\"jsdom\").jsdom(html).childNodes[0].namespaceURI);`\r\n\r\nin browsers this will return \"http://www.w3.org/1999/xhtml\" (even if under HTML5 rules that namespace is technically irrelevant).\r\n\r\nThe same goes for SVG elements inside HTML, although they should report \"http://www.w3.org/2000/svg\" (but be parsed according to the HTML5 rules, which treats the SVG element as properly part of HTML)"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/115669348","html_url":"https://github.com/tmpvar/jsdom/issues/705#issuecomment-115669348","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/705","id":115669348,"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":"2015-06-26T12:52:28Z","updated_at":"2015-06-26T12:52:28Z","body":"Works these days!"}}