mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Fixes the `dom/nodes/getElementsByClassName-11.xml` WPT test, which can be imported but unfortunately not run since it's not an .html file. Co-authored-by: YTBuzzles <bentory15@proton.me>
18 lines
554 B
HTML
18 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>
|