Get 'innerHtml' of SVG shape instance?
"Mark Wyszomierski" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have an sgv document I'm rendering. Is it possible to get the text that
composes an sgv element via javascript? Something like:
<svg>
<rect id = "test" x="4" y="10" />
</svg>
<script>
function f()
{
// I'd like the definition of rect "test" printed here.
alert(document.getElementById("test").innerHTML);
}
</script>
I'd like to get the raw text that composes that shape element.
Thanks