{"action":"created","issue":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/480","labels_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/480/comments","events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/480/events","html_url":"https://github.com/react-bootstrap/react-bootstrap/pull/480","id":66362051,"number":480,"title":"[fixed] Don't try to access .ownerDocument on null","user":{"login":"martijnvermaat","id":623509,"avatar_url":"https://avatars.githubusercontent.com/u/623509?v=3","gravatar_id":"","url":"https://api.github.com/users/martijnvermaat","html_url":"https://github.com/martijnvermaat","followers_url":"https://api.github.com/users/martijnvermaat/followers","following_url":"https://api.github.com/users/martijnvermaat/following{/other_user}","gists_url":"https://api.github.com/users/martijnvermaat/gists{/gist_id}","starred_url":"https://api.github.com/users/martijnvermaat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martijnvermaat/subscriptions","organizations_url":"https://api.github.com/users/martijnvermaat/orgs","repos_url":"https://api.github.com/users/martijnvermaat/repos","events_url":"https://api.github.com/users/martijnvermaat/events{/privacy}","received_events_url":"https://api.github.com/users/martijnvermaat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T20:23:01Z","updated_at":"2015-04-05T01:35:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/pulls/480","html_url":"https://github.com/react-bootstrap/react-bootstrap/pull/480","diff_url":"https://github.com/react-bootstrap/react-bootstrap/pull/480.diff","patch_url":"https://github.com/react-bootstrap/react-bootstrap/pull/480.patch"},"body":"As noted by @lukemcgregor on ee0382e that code breaks when trying to access `.ownerDocument` on `null`.\r\n\r\nI attempt to fix that here by using the root document as a fallback and abstracting that to a domUtils function.\r\n\r\nI also added one test case for this fix, but I'm not sure it's the best way to test it."},"comment":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/comments/89698734","html_url":"https://github.com/react-bootstrap/react-bootstrap/pull/480#issuecomment-89698734","issue_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/480","id":89698734,"user":{"login":"lukemcgregor","id":1284608,"avatar_url":"https://avatars.githubusercontent.com/u/1284608?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemcgregor","html_url":"https://github.com/lukemcgregor","followers_url":"https://api.github.com/users/lukemcgregor/followers","following_url":"https://api.github.com/users/lukemcgregor/following{/other_user}","gists_url":"https://api.github.com/users/lukemcgregor/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemcgregor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemcgregor/subscriptions","organizations_url":"https://api.github.com/users/lukemcgregor/orgs","repos_url":"https://api.github.com/users/lukemcgregor/repos","events_url":"https://api.github.com/users/lukemcgregor/events{/privacy}","received_events_url":"https://api.github.com/users/lukemcgregor/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T01:35:35Z","updated_at":"2015-04-05T01:35:35Z","body":"Yeah that should sort it out :)"}}