title: jQuery automatically closes tags on append? e.g. $("<p/>")
body: <p>I saw this in some code: </p>
  
  <pre><code>$("&lt;p/&gt;").append("&lt;div&gt;something&lt;/div&gt;").appendTo("body");
  </code></pre>
  
  <p>and noticed that it automatically closed the <code>p</code> tag in the generated HTML :</p>
  
  <p><code>&lt;p&gt;&lt;div&gt;something&lt;/div&gt;&lt;/p&gt;</code></p>
  
  <p>I've never seen the selector syntax <code>$("&lt;p/&gt;")</code> before. Is this mistake (and Chrome is just guessing what it should be) or is this a feature of jQuery's selector syntax?</p>