Is there any way to select elements that look like this:
```
<h1>
<span class="foo">Text</span>
<h1>
```
but not like this
```
<h1>
<span class="foo">Text</span>
Bar
<h1>
```
```
<h1>
<span class="foo">Text</span>
<h1>
```
but not like this
```
<h1>
<span class="foo">Text</span>
Bar
<h1>
```