appendChild not working with window.open in IE
问题 I have a page with an svg tag. The page has a button called "Preview" which on clicking should open a new window with the image (svg). Below is a piece of code which works in Chrome/Firefox but not in IE (I'm using IE 9- IE9 standards mode) var w = window.open(); var svg = $('#chart'); var svgPrint = svg.cloneNode(true); svgPrint.setAttribute('xmlns','http://www.w3.org/2000/svg'); w.document.body.appendChild(svgPrint); Any suggestions would be highly appreciated. Thanks. 回答1: IE will block