{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/476","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/476/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/476/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/476","id":184992209,"number":476,"title":"Does not work in Shadow DOM in Safari 10.","user":{"login":"bradleyayers","id":105820,"avatar_url":"https://avatars.githubusercontent.com/u/105820?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyayers","html_url":"https://github.com/bradleyayers","followers_url":"https://api.github.com/users/bradleyayers/followers","following_url":"https://api.github.com/users/bradleyayers/following{/other_user}","gists_url":"https://api.github.com/users/bradleyayers/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyayers/subscriptions","organizations_url":"https://api.github.com/users/bradleyayers/orgs","repos_url":"https://api.github.com/users/bradleyayers/repos","events_url":"https://api.github.com/users/bradleyayers/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyayers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-25T00:54:42Z","updated_at":"2016-10-25T10:29:54Z","closed_at":null,"body":"When ProseMirror adopts an element inside a Shadow DOM in Safari 10, an exception is thrown.\r\n\r\nThe reason appears to be that in Safari 10 the [extensions to `DocumentOrShadowRoot`](https://www.w3.org/TR/shadow-dom/#extensions-to-the-documentorshadowroot-mixin) don't appear to have all been applied to the shadow root.\r\n\r\nThis means that in `rangeToDOM`, `getSelection` is undefined, which when invoked throws an exception.\r\n\r\n```js\r\nvar sel = this.pm.root.getSelection(),\r\n```\r\n\r\nWe've raised https://bugs.webkit.org/show_bug.cgi?id=163921 to track this against Safari.\r\n"},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/255998274","html_url":"https://github.com/ProseMirror/prosemirror/issues/476#issuecomment-255998274","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/476","id":255998274,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T10:29:54Z","updated_at":"2016-10-25T10:29:54Z","body":"Safari isn't really known for responding to bugs quickly. Is there a kludge you know of that lets us access the shadow dom's selection in another way in the meantime?"}}
{"actor":{"display_login":"marijnh"}}