obdfcascrape/tests/data/gi/unit/get-uppermost-elements-by-selector.html
Martin Donnelly be5d3eae07 init
2019-05-05 20:13:56 +01:00

39 lines
958 B
HTML

<div class="foo"> <!-- should be matched -->
</div>
<div>
<div class="foo"> <!-- should be matched -->
</div>
</div>
<div class="foo"> <!-- should be matched -->
<div class="foo nomatch"> <!-- shouldn't be matched as it's nested in a matching element -->
</div>
</div>
<div class="foo"> <!-- should be matched -->
<div class="foo nomatch"> <!-- shouldn't be matched as it's nested in a matching element -->
<div class="foo nomatch"> <!-- shouldn't be matched as it's nested in a matching element -->
</div>
</div>
</div>
<ul>
<li class="bar"> <!-- should be matched -->
</li>
</ul>
<ul>
<li class="bar"> <!-- should be matched -->
<div class="foo nomatch"> <!-- shouldn't be matched as it's nested in a matching element -->
</div>
</li>
</ul>
<div class="foo"> <!-- should be matched -->
<ul>
<li class="bar nomatch"> <!-- shouldn't be matched as it's nested in a matching element -->
</li>
</ul>
</div>