14 lines
420 B
HTML
14 lines
420 B
HTML
<script type="application/json" id="selectors">
|
|
[{
|
|
"selector": "li,p",
|
|
"match": ["1", "2", "3"]
|
|
}]
|
|
</script>
|
|
<div id="testDOM">
|
|
<ul>
|
|
<li id="1">The background of this list item should be green</li>
|
|
<li id="2">The background of this second list item should be also green</li>
|
|
</ul>
|
|
<p id="3">The background of this paragraph should be green.</p>
|
|
</div>
|