{"action":"opened","issue":{"url":"https://api.github.com/repos/inikulin/parse5/issues/38","labels_url":"https://api.github.com/repos/inikulin/parse5/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/inikulin/parse5/issues/38/comments","events_url":"https://api.github.com/repos/inikulin/parse5/issues/38/events","html_url":"https://github.com/inikulin/parse5/issues/38","id":54958436,"number":38,"title":"getTagName in adapters misnamed?","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-20T23:56:51Z","updated_at":"2015-01-20T23:56:51Z","closed_at":null,"body":"In jsdom 3.0.0, we removed tagName from Node and moved it to Element.\r\n\r\nThis seems to have cause https://github.com/tmpvar/jsdom/issues/1004. I traced it to the adapter code:\r\n\r\n```js\r\nexports.getTagName = function (element) {\r\n  return element.tagName.toLowerCase();\r\n};\r\n```\r\n\r\nIt seems this gets called with a text node, which no longer has a tagName.\r\n\r\nIf I switch it to `nodeName`, it seems to work.\r\n\r\nShould the adapter hook be renamed to `getNodeName`?"}}