title: Does jquery clone() user documentfragment internally?
body: <p>I am inserting elements into dom dynamically and for that i m using following steps :(jquery) The initial dom structure is as below:</p>
  
  <pre><code>&lt;div parent div&gt;
   &lt;/div&gt;
   &lt;div child div template&gt;
  &lt;/div&gt;
  </code></pre>
  
  <ul>
  <li>clone the parent div using jquery .clone()</li>
  <li>clone the child div and do manipulation</li>
  <li>append to the cloned parent</li>
  <li>do this for all child data</li>
  <li><code>(parentdiv original).replaceAll(clonedparent)</code></li>
  </ul>
  
  <p>Basically i want to clone the parent div in a manner so that it is available as a 
  documentfragment and so that appending doesnt happen on the dom and gain performance .</p>
  
  <p>Will jQuery <code>clone()</code> give the performance advantage by behaving like documentfragment?
  Or is there a better way to do this? I don't want to construct each child element as HTML string as the structure of them is pretty complex.</p>