Can I put logical operators in document.querySelectorAll? If so, how?
<p>Let's say I want to find all <code>div</code> elements and <code>span</code> inside <code>p</code>.</p>
<p>Is it possible to get all what I want in a single <code>querySelectorAll</code> invocation?</p>
<p>Conceptually it should be something like <code>document.querySelectorAll(&quot;div | p span&quot;)</code> (where <kbd>|</kbd> means <strong>or</strong>).</p>