ladybird/Tests/LibWeb/Text/input/namespace-attribute-changed.html
Jelle Raaijmakers 405e270583 LibWeb: Skip namespaced attributes in Element::attribute_changed()
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>
2025-11-24 09:13:26 +01:00

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>