exupero / saveSvgAsPng

Save SVGs as PNGs from the browser.
MIT License
1.09k stars 362 forks source link

IE fails to parse data:image/svg+xml;base64 #1

Closed bhondu closed 9 years ago

bhondu commented 10 years ago

IE fails to parse xml image: XML5661: Non-default namespace declarations must not have an empty URI. Line: 1, Column 335

Checked on latest IE11, but earlier versions are affected too.

exupero commented 9 years ago

I think you'll have other problems trying to save PNGs from canvases in IE 11, since last I checked canvas.toDataURL() is considered a security error.

stryju commented 9 years ago

i have to disagree here - there are some other quirks with IE in general, but basic conversion is done right

exupero commented 9 years ago

I'm no expert in IE, so perhaps I have something misconfigured, but trying to save PNGs from IE 11 gives me a SecurityError at canvas.toDataURL(), both when saving an SVG loaded by the user and saving an SVG that's inline in the HTML (I'm using this test page).

Are you doing something different such that it works in IE?

exupero commented 9 years ago

I'm also using Windows 8 to test. Perhaps it works in Windows 7?

stryju commented 9 years ago

will check, when i get the chance and will report with results ;-)