Re: Get 'innerHtml' of SVG shape instance?

markww <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>

Boris Zbarsky wrote:
> 
> Not in a cross-browser way, I don't think.  In Gecko you could use 
> XMLSerializer for this.
> 

XMLSerializer works in firefox, but fails in Safari sadly. I thought Safari
was also supposed to support XMLSerializer? I'm just trying:

    var p = document.getElementById("mysvg_shape");
    if (p != null) {
        var serializer = new XMLSerializer();
	alert(serializer.serializeToString(p));

however that produces an empty string in safari. Well at least FF works.

-- 
View this message in context: http://www.nabble.com/Get-%27innerHtml%27-of-SVG-shape-instance--tp20969384p20976482.html
Sent from the Mozilla - SVG mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.