title: howto replace document object of a window/iframe
body: <p>I need to inject in an iframe window a document object that I instanciated previously, and I cannot serialize it into a string or a remote url (those are solutions proposed on previous stackoverflow posts), because elements of this document objects are bound to other objects in my code.</p>
  
  <p>How can I do it ?</p>
  
  <p>thanks,
  b.</p>