I'm trying to embed a SVG image in a XHMTL document. The image is loaded using Sys.Net.WebRequest and then imported:
var xml = executor.get_xml(); var svg = document.importNode(xml.documentElement, true);
This works in Firefox, Opera and Chrome. But in IE9 both document.importNode and document.adoptNode throw a "No such interface supported" exception. Both methods should be implemented in IE9. Any suggestions other than implementing own importNode like here?
Thanks in advance
- Edited by Rafał Rutkowski Thursday, May 05, 2011 2:16 PM Fixed exception message
you can determine if a js method is implemented in the DocumentMode that your MSIE browser is using by typing the expression in the Console tab of the Developer tool...
f12>Console tab, type
to determine the documents MSIE rendering mode. the available DOM tree will depend on your IE version and the rendering mode that it is using to render your xhtml page.