jQuery :has() equivalent using document.querySelector <p>As I wrote in the topic - I am looking for a jQuery :has() selector equivalent using document.querySelector.</p> <p>For example I would like to select all paragraphs that contains links:</p> <p>With jQuery it will be simple:</p> <pre><code>$("p:has(a)") </code></pre> <p>How to achieve that using javascript's document.querySelector?</p> <p>Thanks in advance.</p>