mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
19 lines
554 B
HTML
19 lines
554 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<script src="include.js"></script>
|
||
|
|
<div id="tests">
|
||
|
|
<x class="a"></x>
|
||
|
|
<g:x class="a"></g:x>
|
||
|
|
<x t:class="a" h:class="a" g:class="a"></x>
|
||
|
|
<g:x t:class="a" h:class="a" g:class="a"></g:x>
|
||
|
|
<t:x class="a" t:class="a" h:class="a" g:class="a"></t:x>
|
||
|
|
</div>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
const collection = document.getElementsByClassName("a");
|
||
|
|
println(`Matched elements: ${collection.length}`);
|
||
|
|
for (const match of collection) {
|
||
|
|
println(`Match: ${match.outerHTML}`);
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|