I would like to select all elements with direct text contents. So given the document
<div>
<h1>Hi</h1>
<article>
<p>blah balah blah</p>
<p>blah blahrg blarg</p>
</article>
<footer></footer>
</div>
I would like to select the h1 and p elements (so 3 elements total). Is there a simple way to do this?