title: importNode and Microsoft Edge
body: <p>I have a dynamic page where, with a bar button, I can change the main <code>div</code> content.
  Most of the pages are static except one, which contains JavaScript (RGraph charts).
  That's why in order to make it working I use the following code:</p>
  
  <pre><code>var data = new FormData();
  data.append( 'action', 'charts' );
  // clean the content
  var myNode = document.getElementById("contentView");
  while (myNode.firstChild)
  {
      myNode.removeChild(myNode.firstChild);
  }
  // set the new content
  var div = document.createElement("div");
  var t = document.createElement('template');
  t.innerHTML =  _connectToServer( data );
  for (var i=0; i &lt; t.content.childNodes.length; i++)
  {
      var node = document.importNode(t.content.childNodes[i], true);
      div.appendChild(node);
  }
  document.getElementById("contentView").appendChild(div);
  </code></pre>
  
  <p>The problem is that as far as I see (and I read) such a code is not compatible with Microsoft Edge, and I would like to make it going with Edge as well.</p>
  
  <p>What's the best way to succeed? </p>