{"action":"created","issue":{"url":"https://api.github.com/repos/skatejs/skatejs/issues/153","labels_url":"https://api.github.com/repos/skatejs/skatejs/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/skatejs/skatejs/issues/153/comments","events_url":"https://api.github.com/repos/skatejs/skatejs/issues/153/events","html_url":"https://github.com/skatejs/skatejs/issues/153","id":59192444,"number":153,"title":"IE - document.contains doesn't exist!","user":{"login":"maikeldaloo","id":690561,"avatar_url":"https://avatars.githubusercontent.com/u/690561?v=3","gravatar_id":"","url":"https://api.github.com/users/maikeldaloo","html_url":"https://github.com/maikeldaloo","followers_url":"https://api.github.com/users/maikeldaloo/followers","following_url":"https://api.github.com/users/maikeldaloo/following{/other_user}","gists_url":"https://api.github.com/users/maikeldaloo/gists{/gist_id}","starred_url":"https://api.github.com/users/maikeldaloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maikeldaloo/subscriptions","organizations_url":"https://api.github.com/users/maikeldaloo/orgs","repos_url":"https://api.github.com/users/maikeldaloo/repos","events_url":"https://api.github.com/users/maikeldaloo/events{/privacy}","received_events_url":"https://api.github.com/users/maikeldaloo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-27T05:31:19Z","updated_at":"2015-02-28T03:52:00Z","closed_at":null,"body":"Hi guys,\r\n\r\nI'm developing a site using SkateJS right now and I ran into a problem on IE.\r\nIt complains that `document.contains` doesn't exist.\r\nSee https://github.com/skatejs/skatejs/blob/master/dist/skate.js#L651.\r\n\r\nI had a look at [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains), they say that `document.contains` works on IE5+.  \r\nIn the IE console, I ran `document.contains` and I got `undefined`, I tried this on all the IE versions I could emulate.\r\n\r\nI tested this fix and all that needs to change is:\r\n```\r\nif (!document.contains(target)) {\r\n    return;\r\n}\r\n```\r\nto\r\n```\r\nif (!document.body.contains(target)) {\r\n    return;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/skatejs/skatejs/issues/comments/76508796","html_url":"https://github.com/skatejs/skatejs/issues/153#issuecomment-76508796","issue_url":"https://api.github.com/repos/skatejs/skatejs/issues/153","id":76508796,"user":{"login":"treshugart","id":136556,"avatar_url":"https://avatars.githubusercontent.com/u/136556?v=3","gravatar_id":"","url":"https://api.github.com/users/treshugart","html_url":"https://github.com/treshugart","followers_url":"https://api.github.com/users/treshugart/followers","following_url":"https://api.github.com/users/treshugart/following{/other_user}","gists_url":"https://api.github.com/users/treshugart/gists{/gist_id}","starred_url":"https://api.github.com/users/treshugart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treshugart/subscriptions","organizations_url":"https://api.github.com/users/treshugart/orgs","repos_url":"https://api.github.com/users/treshugart/repos","events_url":"https://api.github.com/users/treshugart/events{/privacy}","received_events_url":"https://api.github.com/users/treshugart/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T03:52:00Z","updated_at":"2015-02-28T03:52:00Z","body":"Just to confirm, you're right. It doesn't seem to work when testing in real IE9. It must have been introduced recently in between our testing. I'll fix 'er up for you."}}