{"action":"created","issue":{"url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/80","labels_url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/80/comments","events_url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/80/events","html_url":"https://github.com/jonathantneal/svg4everybody/issues/80","id":104728703,"number":80,"title":"IE freezes to death on injection of an external pattern","user":{"login":"cheshikhin-alexey","id":14111566,"avatar_url":"https://avatars.githubusercontent.com/u/14111566?v=3","gravatar_id":"","url":"https://api.github.com/users/cheshikhin-alexey","html_url":"https://github.com/cheshikhin-alexey","followers_url":"https://api.github.com/users/cheshikhin-alexey/followers","following_url":"https://api.github.com/users/cheshikhin-alexey/following{/other_user}","gists_url":"https://api.github.com/users/cheshikhin-alexey/gists{/gist_id}","starred_url":"https://api.github.com/users/cheshikhin-alexey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheshikhin-alexey/subscriptions","organizations_url":"https://api.github.com/users/cheshikhin-alexey/orgs","repos_url":"https://api.github.com/users/cheshikhin-alexey/repos","events_url":"https://api.github.com/users/cheshikhin-alexey/events{/privacy}","received_events_url":"https://api.github.com/users/cheshikhin-alexey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T16:00:38Z","updated_at":"2015-09-28T23:45:35Z","closed_at":null,"body":"I was hoping svg4everybody would help me with keeping my svg patterns in an external files, like this:\r\n```\r\n<svg width=\"100%\" height=\"466\" style=\"top:10px;\">\r\n<defs>\r\n  <pattern id=\"pattern\"\r\n           x=\"0\" y=\"0\" width=\"1324px\" height=\"100%\"\r\n           patternUnits=\"userSpaceOnUse\" >\r\n\t<use xlink:href=\"city-g.svg#city\" style=\"fill:#00ffff;\"></use>\r\n  </pattern>\r\n</defs>\r\n\t<rect x=\"10\" y=\"10\" width=\"100%\" height=\"100%\" fill=\"url(#pattern)\" />\r\n</svg>\r\n```\r\n\r\nBut it freezes my IE10 until \"Stop running this script?\" message shows after a while or browser simply die completely."},"comment":{"url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/comments/143903330","html_url":"https://github.com/jonathantneal/svg4everybody/issues/80#issuecomment-143903330","issue_url":"https://api.github.com/repos/jonathantneal/svg4everybody/issues/80","id":143903330,"user":{"login":"bfred-it","id":1402241,"avatar_url":"https://avatars.githubusercontent.com/u/1402241?v=3","gravatar_id":"","url":"https://api.github.com/users/bfred-it","html_url":"https://github.com/bfred-it","followers_url":"https://api.github.com/users/bfred-it/followers","following_url":"https://api.github.com/users/bfred-it/following{/other_user}","gists_url":"https://api.github.com/users/bfred-it/gists{/gist_id}","starred_url":"https://api.github.com/users/bfred-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfred-it/subscriptions","organizations_url":"https://api.github.com/users/bfred-it/orgs","repos_url":"https://api.github.com/users/bfred-it/repos","events_url":"https://api.github.com/users/bfred-it/events{/privacy}","received_events_url":"https://api.github.com/users/bfred-it/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T23:45:35Z","updated_at":"2015-09-28T23:45:35Z","body":"I found the issue. Can someone explain the reason behind this?\r\nhttps://github.com/jonathantneal/svg4everybody/blob/e546be4045e9abe67a1c83a9ea850bc9462eef07/lib/svg4everybody.js#L69-L72\r\n\r\nThe script finds the first `<use>` tag, checks whether its parent is an `svg` tag and then it never proceeds. This should be a `for` loop.\r\n\r\nAlso I'm not sure why it's checking whether its direct parent is an SVG tag on line 72. @jonathantneal?"}}