Possible jQuery bug parsing HTML
<p>I just discovered this issue, and I wanted to run it by everyone here to make sure I wasn't missing obvious something before I reported it.</p>

<p>Here is what's causing me a problem:</p>

<pre><code>html = '&lt;html&gt;&lt;body&gt;&lt;div id="test"&gt;This is just a test&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;';
alert( $(html).find('#test').html() );
</code></pre>

<p>The alert window shows <code>null</code> instead of the text inside <code>#test</code>. <strong>HOWEVER</strong>, if I simply wrap <code>&lt;div id="test"&gt;</code> in another <code>div</code> element, it works properly and returns the expected, "This is just a test".</p>

<p>This code works:</p>

<pre><code>html = '&lt;html&gt;&lt;body&gt;&lt;div&gt;&lt;div id="test"&gt;This is just a test&lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;';
alert( $(html).find('#test').html() );
</code></pre>

<p>Can someone explain to me why this would be happening? Why would the second example work but the first one not?</p>
