LibWeb: Match class selectors case insensitively in quirks mode

This align our implementation with the CSSWG Selectors Level 4
specification.
This commit is contained in:
Tim Ledbetter 2024-08-02 22:21:12 +01:00 committed by Andreas Kling
commit 82ed253477
Notes: github-actions[bot] 2024-08-03 14:46:10 +00:00
3 changed files with 22 additions and 4 deletions

View file

@ -0,0 +1,9 @@
<!-- Quirks mode -->
<script src="include.js"></script>
<div class="tEsT"></div>
<script>
test(() => {
let divElement = document.querySelector(".test");
println(`ParentNode.querySelector matches class selectors case-insensitively in quirks mode: ${divElement instanceof Element}`);
});
</script>