Import SVG node into another document in IE9
问题 After fetching an SVG document using XHR I need to append a portion of it from the responseXML document into the current document. Using this code works on Safari/Chrome/FireFox, but does not work on IE9: var xhr = new XMLHttpRequest; xhr.open('get','stirling4.svg',true); xhr.onreadystatechange = function(){ if (xhr.readyState != 4) return; var g = xhr.responseXML.getElementsByTagName('g')[2]; var p = document.getElementsByTagName('path')[0]; p.parentNode.insertBefore(document.importNode(g