title: Set <object>'s contentDocument from another DOM
body: <p>I need to insert a DOM which is a complete SVG document into an <code>&lt;object&gt;</code> element. SO here's my code:</p>
  
  <pre><code>var svgDom   = (new DOMParser()).parseFromString(streamedFile,'image/svg+xml');
  var pagePics = document.querySelectorAll('#currentFiles figure object');
  
  for (var i=0; i&lt;pagePics.length; i++){
      pagePics[i].contentDocument = svgDom.document;
  }
  </code></pre>
  
  <p>But this doesn't work. DOM inspector doesn't show <code>&lt;object&gt;</code>'s contentDocument property after this code has run. </p>
  
  <p>It's possible to use jQuery if this makes things easier. What am i doing wrong?</p>