JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<p id="foo">
<span></span>
</p>
</div>
JavaScript
// The first is correctly fixed
// The second does not have the added id selector
// This should not select anything
// http://ejohn.org/blog/thoughts-on-queryselectorall/
// https://github.com/jquery/sizzle/blob/master/sizzle.js#L1202-1229
console.log( $('p').find('div span, div span') );