mootools / slick

Standalone CSS Selector Parser and Engine. An official MooTools project.
MIT License
149 stars 22 forks source link

Slick + SVG #21

Open slik opened 13 years ago

slik commented 13 years ago

I noticed that Slick creats slick:uniqueid="#NUMBER" attributes almost in each elements. That is problem in opera, when i'm trying to export SVG as text, and then saving to a file. Generated SVG file doesn't shows (parsing errors).

Problem was resolved by adding xmlns:slick="http://mootools.net/" namespace to the SVG tag

subtleGradient commented 13 years ago

Anyone happen to remember the API for adding an xmlns attribute? Maybe instead we should have an explicit way to tell Slick to remove all its custom attributes? Slick.cleanup(document) ?

We should probly do both, just to be safest.