title: Cannot parse HTML with jQuery
body: <p>I want to parse home HTML like the following using jQuery. When I'm using <strong>document</strong> it is working. But not working when using string.</p>
  
  <p><strong>Output:</strong> <em>null</em></p>
  
  <pre><code>var str = "&lt;html&gt;&lt;title&gt;This is Title&lt;/title&gt;&lt;body&gt;&lt;p&gt;This is a content&lt;/p&gt;&lt;p class='test'&gt;Test content&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;";
  $str = $(document); // working
  $str = $(str);      // not working
  alert($str.find(".test").html());
  </code></pre>
  
  <p>Another method (also fails):</p>
  
  <p><strong>Output:</strong> <em>null</em></p>
  
  <pre><code>var str = "&lt;html&gt;&lt;title&gt;This is Title&lt;/title&gt;&lt;body&gt;&lt;p&gt;This is a content&lt;/p&gt;&lt;p class='test'&gt;Test content&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;";
  alert($('.test',str).html());
  </code></pre>
  
  <hr>
  
  <p>The string I'm getting also cannot be parsed as XML as it is not a valid XHTML.</p>