W3C home > Mailing lists > Public > www-svg@w3.org > March 2013

Re: SVGSVGElement.toDataURL()

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Mon, 11 Mar 2013 15:29:22 +0100
Message-ID: <CAEi838m8-_WxZiJVZQ7Qpfnv-d=5LO0kE3EQbQ0e0AfXqd2a4A@mail.gmail.com>
To: Robert Longson <longsonr@gmail.com>
Cc: www-svg <www-svg@w3.org>
2013/3/11 Robert Longson <longsonr@gmail.com>

> > 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 ;-)
>

Just an easier access point for web authors ;-)

-- 
Jeremie
.............................
Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Monday, 11 March 2013 14:30:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:41 UTC