"No such interface supported" when trying to import SVG using importNode or adoptNode in IE9

Unanswered "No such interface supported" when trying to import SVG using importNode or adoptNode in IE9

  • Thursday, May 05, 2011 2:14 PM
     
      Has Code

    Hi!

    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

    Rafał Rutkowski


    • Edited by Rafał Rutkowski Thursday, May 05, 2011 2:16 PM Fixed exception message
    •  

All Replies