title: How to deep clone iframe?
body: <p>Is there any way to deep clone iframe?</p>
  
  <p>Basic jQuery cloning just makes another iframe with the same src. What I want to achieve is a way to clone the iframe and it's exact current content (ie. any possible input values, any DOM modifications through javascript etc.).</p>
  
  <pre><code>var clone = iframe.contents().find('html').clone();
  </code></pre>
  
  <p>When i clone the HTML attribute and all its children's, modifications etc I have these problems:</p>
  
  <ol>
  <li><p>I'm missing the DOCTYPE</p></li>
  <li><p>how do I insert it into the new iFrame?</p></li>
  </ol>