Re: SVGSVGElement.toDataURL()

> Actually it would be useful to have something like innerHTML on SVGElement.
> This would allow to get a string representation of any SVG DOM tree. Once
> we have such a string representation, it's trivial to produce a DATA URI.

And that already exists too:
https://developer.mozilla.org/en-US/docs/XMLSerializer

Or DOMParser to go the other way:
https://developer.mozilla.org/en-US/docs/DOM/DOMParser.

And yes these are cross-browser.

So no new wheels need be invented ;-)

Robert.

Received on Monday, 11 March 2013 14:26:56 UTC