HTML page SVG definition
<embed id="sv" src="test.svg" type="image/svg+xml" width="1720" height="938">
Javascript :
//var eID = document.getElementById("ENV");
var S = document.getElementById("sv");
var SD;
S.addEventListener('load', function()
{
SD = S.contentDocument;
SD = S.getSVGDocument();
// Operate upon the SVG DOM here
});
as you see, my SVG is defined by an embed
element, When i tried to access this SVG object, i get undefined
in Chrome (SD
variable in above code), But it is working fine in Firefox and I can access the elements inside SVG.
So, the issue is only with Chrome. Whats the problem and how to resolve it?