mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
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>
This commit is contained in:
committed by
Jelle Raaijmakers
parent
999656a7d3
commit
405e270583
Notes:
github-actions[bot]
2025-11-24 08:14:33 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/405e2705837 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6896
18
Tests/LibWeb/Text/input/namespace-attribute-changed.html
Normal file
18
Tests/LibWeb/Text/input/namespace-attribute-changed.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user