title: JQuery .find() fails after inserting a HTMLElement object in IE7
body: <p>I have a pair of HTMLElement objects that are being passed into a function. One is a container div, and the second is appended to the container. This is working as expected. In order to find the child element later, i give it a unique class for this type of element (there can be more than one). This is also working as expected.
  However, when I later go to manipulate the child element, jQuery .find(".myClass") fails to return any results. The following code returns 1 in chrome and ie8/9 but 0 in ie7:</p>
  
  <pre><code>$(document).ready(function(){
      var insert = document.createElement("div");
      insert.setAttribute("class","insertedElement");
      insert.appendChild(document.createTextNode("Some Text"));
      $(document.getElementById("container")).append(insert);
      alert($("#container").find(".insertedElement").length);
  });
  </code></pre>
  
  <p>Here it is in a JSFiddle: <a href="http://jsfiddle.net/tYfqk/" rel="nofollow">http://jsfiddle.net/tYfqk/</a></p>
  
  <p>Any idea what is happening here, or how i can correct it? </p>
  
  <p>Also, please excuse the contrived $("document.getElementById("container")).append(insert); above, this is just to illustrate that my objects come in as DOM elements, not jQuery objects. I am aware $("#container").append(insert); would make more sense there, but even if you change that the issue is still present.</p>