obdfcascrape/tests/data/gi/unit/get-uppermost-elements-by-selector.html

39 lines
958 B
HTML
Raw Permalink Normal View History

2019-05-05 19:13:56 +00:00
<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>