{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1578","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1578/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1578/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1578/events","html_url":"https://github.com/tmpvar/jsdom/issues/1578","id":168891713,"number":1578,"title":"Returning an empty HTMLDivElement","user":{"login":"ramramps","id":8495197,"avatar_url":"https://avatars.githubusercontent.com/u/8495197?v=3","gravatar_id":"","url":"https://api.github.com/users/ramramps","html_url":"https://github.com/ramramps","followers_url":"https://api.github.com/users/ramramps/followers","following_url":"https://api.github.com/users/ramramps/following{/other_user}","gists_url":"https://api.github.com/users/ramramps/gists{/gist_id}","starred_url":"https://api.github.com/users/ramramps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramramps/subscriptions","organizations_url":"https://api.github.com/users/ramramps/orgs","repos_url":"https://api.github.com/users/ramramps/repos","events_url":"https://api.github.com/users/ramramps/events{/privacy}","received_events_url":"https://api.github.com/users/ramramps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T13:56:56Z","updated_at":"2016-08-02T15:13:36Z","closed_at":null,"body":"here is the snippet \r\nlet testhtml = ```\"<html><body><div id=app><div id=viewer></div></div></body></html>\" ```  \r\njsdom.env({   \r\n            html:testhtml ,                                          \r\n            done: function (err: any, window: any) {                                                                           \r\n                  console.log(window.document.getElementById(\"viewer\"));                                                                   \r\n            }\r\n        });\r\n\r\nHere window.document.getElementById(\"viewer\") returns an empty HTMLDivElement. \r\nIn chrome, I got *div id=\"viewer\"*    the expectation is it should return the same div element.\r\n\r\nIs it a bug or am I missing something here? "},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/236936247","html_url":"https://github.com/tmpvar/jsdom/issues/1578#issuecomment-236936247","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1578","id":236936247,"user":{"login":"ramramps","id":8495197,"avatar_url":"https://avatars.githubusercontent.com/u/8495197?v=3","gravatar_id":"","url":"https://api.github.com/users/ramramps","html_url":"https://github.com/ramramps","followers_url":"https://api.github.com/users/ramramps/followers","following_url":"https://api.github.com/users/ramramps/following{/other_user}","gists_url":"https://api.github.com/users/ramramps/gists{/gist_id}","starred_url":"https://api.github.com/users/ramramps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramramps/subscriptions","organizations_url":"https://api.github.com/users/ramramps/orgs","repos_url":"https://api.github.com/users/ramramps/repos","events_url":"https://api.github.com/users/ramramps/events{/privacy}","received_events_url":"https://api.github.com/users/ramramps/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T15:13:36Z","updated_at":"2016-08-02T15:13:36Z","body":"I have simplified the code there. the console.log has only HTMLDivElement {}"}}
{"actor":{"display_login":"ramramps"}}