title: $("#id") only selects the first element but $("div#id") selects both?
body: <pre><code>&lt;!DOCTYPE HTML&gt;
  
  &lt;script src='http://code.jquery.com/jquery-latest.min.js'&gt;&lt;/script&gt;
  
  &lt;body&gt;
  
  &lt;div id='mydiv'&gt;Hello, buddy.&lt;/div&gt;
  &lt;div id='mydiv'&gt;Hello, friend.&lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>When in JQuery, if I <code>$('#mydiv')</code> it will select only the first div, BUT if I do <code>$('div#mydiv')</code> it will select all of them.</p>
  
  <p>I understand that specifying the element as well as the id, it will prevent from selecting other elements that have the same id but are not divs.</p>
  
  <p>Isn't this a bug? Shouldn't <code>$('#mydiv')</code> select all elements which id is 'mydiv'?</p>