{"action":"created","issue":{"url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/158","repository_url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js","labels_url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/158/comments","events_url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/158/events","html_url":"https://github.com/cburgmer/rasterizeHTML.js/issues/158","id":180857312,"number":158,"title":"SVGStyleElement.sheet is undefined on iOS","user":{"login":"akarienta","id":5546543,"avatar_url":"https://avatars.githubusercontent.com/u/5546543?v=3","gravatar_id":"","url":"https://api.github.com/users/akarienta","html_url":"https://github.com/akarienta","followers_url":"https://api.github.com/users/akarienta/followers","following_url":"https://api.github.com/users/akarienta/following{/other_user}","gists_url":"https://api.github.com/users/akarienta/gists{/gist_id}","starred_url":"https://api.github.com/users/akarienta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akarienta/subscriptions","organizations_url":"https://api.github.com/users/akarienta/orgs","repos_url":"https://api.github.com/users/akarienta/repos","events_url":"https://api.github.com/users/akarienta/events{/privacy}","received_events_url":"https://api.github.com/users/akarienta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-04T10:30:02Z","updated_at":"2016-10-04T14:50:26Z","closed_at":null,"body":"Hi, I am trying to get this plugin working with Cordova on iOS. It is crashing in function `replaceSimpleSelectorsBy` on [this line](https://github.com/cburgmer/rasterizeHTML.js/blob/ea79622e9c894744effabad7347259797bf2bb03/src/documentUtil.js#L64) because `styleElement.sheet` is undefined for elements with type `SVGStyleElement` on iOS. \r\n\r\nDo you have any idea how to fix it?"},"comment":{"url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/comments/251411085","html_url":"https://github.com/cburgmer/rasterizeHTML.js/issues/158#issuecomment-251411085","issue_url":"https://api.github.com/repos/cburgmer/rasterizeHTML.js/issues/158","id":251411085,"user":{"login":"cburgmer","id":101613,"avatar_url":"https://avatars.githubusercontent.com/u/101613?v=3","gravatar_id":"","url":"https://api.github.com/users/cburgmer","html_url":"https://github.com/cburgmer","followers_url":"https://api.github.com/users/cburgmer/followers","following_url":"https://api.github.com/users/cburgmer/following{/other_user}","gists_url":"https://api.github.com/users/cburgmer/gists{/gist_id}","starred_url":"https://api.github.com/users/cburgmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburgmer/subscriptions","organizations_url":"https://api.github.com/users/cburgmer/orgs","repos_url":"https://api.github.com/users/cburgmer/repos","events_url":"https://api.github.com/users/cburgmer/events{/privacy}","received_events_url":"https://api.github.com/users/cburgmer/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T14:50:26Z","updated_at":"2016-10-04T14:50:26Z","body":"Just to reproduce with a minimal test case: https://jsfiddle.net/cburgmer/smea222j/1/\r\n\r\nThe developer console in Chrome reports a parsed rule, while Safari fails for both. \r\n\r\nI did not find any entry in Webkit's bug tracker. If you can still reproduce this issue in a newer Safari, feel free to open a ticket there to have this fixed for good https://bugs.webkit.org/buglist.cgi?quicksearch=style+sheet+null.\r\n\r\nFor the meantime I've documented this here: https://github.com/cburgmer/rasterizeHTML.js/wiki/Limitations#safari\r\n\r\nLet me know if this works for you."}}
{"actor":{"display_login":"cburgmer"}}