My document is shaped this way:
Accessing DOM by another DOM
Re: Accessing DOM by another DOM
For me this works in most browsers that accept embedded SVGs:
Thereafter you can use standard DOM methods on this SVG_DOM object like getElementsById, getElementsByTagName, etc.
Code: Select all
var SVG_DOM = document.getElementById('id_of_embedded_svg_element').getSVGDocument().documentElement;
Thereafter you can use standard DOM methods on this SVG_DOM object like getElementsById, getElementsByTagName, etc.