title: JQuery just created empty div doesn't have document fragment as parent
body: <p>When creating new html node in jQuery using</p>
  
  <pre><code>$('&lt;some-node&gt;some html code&lt;/some-node&gt;');
  </code></pre>
  
  <p>it won't become part of DOM, until you attach it. However, it does not mean, the node has no parent.</p>
  
  <p>If the node was created unempty, e.g.:</p>
  
  <pre><code>var myNewNode = $('&lt;div&gt;Hello&lt;/div&gt;');
  </code></pre>
  
  <p>You can check the parent:</p>
  
  <pre><code>myNewNode[0].parentNode; // Who is the parent?
  </code></pre>
  
  <p>and see you get</p>
  
  <pre><code>DocumentFragment
  </code></pre>
  
  <p>as result. <code>DocumentFragment</code> is some object similar to <code>document</code>, however, not part of the DOM tree.</p>
  
  <p>The strange thing comes now. When you create an empty node, like</p>
  
  <pre><code>var myNewEmptyNode = $('&lt;div&gt;&lt;/div&gt;');
  </code></pre>
  
  <p>and try to check its contents</p>
  
  <pre><code>myNewEmptyNode[0].parentNode; // Who is now the parent?
  </code></pre>
  
  <p>surprisingly you get</p>
  
  <pre><code>null
  </code></pre>
  
  <p>I cannot understand this behaviour and found nothing about it in jQuery documentation. I found it when trying to debug why javascriptMVC mxui modal was failing on an empty div.</p>
  
  <p>I have tested this behaviour in both Chromium and Opera, so it does not seem to be a browser related issue.</p>
  
  <p>Does someone have an explanation for this?</p>