39 lines
958 B
HTML
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>
|