nytimes / svg-crowbar

Extracts an SVG node and accompanying styles from an HTML document and allows you to download it all as an SVG file.
https://nytimes.github.io/svg-crowbar/
MIT License
840 stars 152 forks source link

Not compatible with SVG generated by svg.js library #3

Closed thehans closed 11 years ago

thehans commented 11 years ago

When using crowbar with content generated by svg.js, the resulting file gives invalid XML.

Loading in chrome shows this error: error on line 1 at column 182: Attribute xmlns redefined

This page has SVG examples which exhibit this error: http://svgjs.com/test/

shancarter commented 11 years ago

Fixed with the lastest push.