{"action":"created","issue":{"url":"https://api.github.com/repos/gabelerner/canvg/issues/346","labels_url":"https://api.github.com/repos/gabelerner/canvg/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/gabelerner/canvg/issues/346/comments","events_url":"https://api.github.com/repos/gabelerner/canvg/issues/346/events","html_url":"https://github.com/gabelerner/canvg/issues/346","id":63420131,"number":346,"title":"SyntaxError in IE11 with SVG from RaphaelJS","user":{"login":"maciejjankowski","id":2905995,"avatar_url":"https://avatars.githubusercontent.com/u/2905995?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejjankowski","html_url":"https://github.com/maciejjankowski","followers_url":"https://api.github.com/users/maciejjankowski/followers","following_url":"https://api.github.com/users/maciejjankowski/following{/other_user}","gists_url":"https://api.github.com/users/maciejjankowski/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejjankowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejjankowski/subscriptions","organizations_url":"https://api.github.com/users/maciejjankowski/orgs","repos_url":"https://api.github.com/users/maciejjankowski/repos","events_url":"https://api.github.com/users/maciejjankowski/events{/privacy}","received_events_url":"https://api.github.com/users/maciejjankowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-21T15:49:38Z","updated_at":"2016-01-29T20:31:22Z","closed_at":null,"body":"In IE 11 I get the following:\r\n````\r\nSCRIPT5022: SyntaxError\r\nFile: canvg.bundle.js, Line: 1035, Column: 5\r\n->    return parser.parseFromString(xml, 'text/xml');\r\nNon-default namespace declarations must not have an empty URI. Line: 1, Column 187\r\n````\r\n\r\nI am using RaphaelJS which generates the following SVG:\r\n````\r\n<svg style=\"overflow: hidden; position: relative;\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" width=\"770\" version=\"1.1\" height=\"553\"><desc>Created with Raphaël 2.1.2</desc><defs></defs><image xlink:href=\"ron2.jpg\" preserveAspectRatio=\"none\" height=\"553\" width=\"770\" y=\"0\" x=\"0\"></image><text stroke-width=\"2\" fill=\"#000000\" stroke=\"#ffffff\" font-size=\"105px\" font-family=\"Impact\" text-anchor=\"left\" y=\"109\" x=\"431\" style=\"text-anchor: middle; font-family: Impact; font-size: 105px;\"><tspan dy=\"41.5\">SO is awesome!!</tspan></text><text stroke-width=\"2\" fill=\"#000000\" stroke=\"#ffffff\" font-size=\"105px\" font-family=\"Impact\" text-anchor=\"left\" y=\"108\" x=\"427\" style=\"text-anchor: middle; font-family: Impact; font-size: 105px;\"><tspan dy=\"41.5\">SO is awesome!!</tspan></text></svg>\r\n````\r\n\r\nand I am calling canvg like this:\r\n\r\n     canvg('canvas', $('#container').html());\r\n\r\nwhich works fine in latest Chrome and FF"},"comment":{"url":"https://api.github.com/repos/gabelerner/canvg/issues/comments/176955901","html_url":"https://github.com/gabelerner/canvg/issues/346#issuecomment-176955901","issue_url":"https://api.github.com/repos/gabelerner/canvg/issues/346","id":176955901,"user":{"login":"ddausch","id":8811279,"avatar_url":"https://avatars.githubusercontent.com/u/8811279?v=3","gravatar_id":"","url":"https://api.github.com/users/ddausch","html_url":"https://github.com/ddausch","followers_url":"https://api.github.com/users/ddausch/followers","following_url":"https://api.github.com/users/ddausch/following{/other_user}","gists_url":"https://api.github.com/users/ddausch/gists{/gist_id}","starred_url":"https://api.github.com/users/ddausch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddausch/subscriptions","organizations_url":"https://api.github.com/users/ddausch/orgs","repos_url":"https://api.github.com/users/ddausch/repos","events_url":"https://api.github.com/users/ddausch/events{/privacy}","received_events_url":"https://api.github.com/users/ddausch/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T20:31:22Z","updated_at":"2016-01-29T20:31:22Z","body":"@akoskm - Thanks, I get what you mean. I ended up replacing the following text: xmlns=\\\"http://www.w3.org/2000/svg\\\"  with a space. \r\nI went to this url: https://validator.w3.org/check and the new version of my content passed their test. I am still getting a DOM syntax error. Any other suggestions here? Not sure what to do next."}}