exupero / saveSvgAsPng

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

Fix foreignObject namespace setting #219

Closed ligaz closed 5 years ago

ligaz commented 5 years ago

The fix for #200 incorrectly changed the foreignObject namespace to XML's one instead of XHTML. This results in an invalid image.

This change addresses the issue. Namespace variable is also renamed to donate the actual value it is storing.

exupero commented 5 years ago

Thanks. I've pushed this in version 1.4.13.

ligaz commented 5 years ago

Thanks @exupero! Do you mind checking #218 as well?