Javascript class selection
<p>How come this Javascript selector</p>

<p><code>document.getElementsByClassName('first-class class-child second-child')</code></p>

<p>looks identical to this jQuery selector</p>

<pre><code>$('.first-class .class-chlid .second-child');
</code></pre>

<p>yet it doesn't work the same way?</p>