LibWeb: Perform DOMTokenList token validation in the correct order

This commit is contained in:
Tim Ledbetter 2024-07-23 13:10:50 +01:00 committed by Andreas Kling
commit 0127190dcf
Notes: github-actions[bot] 2024-07-25 04:44:23 +00:00
4 changed files with 26 additions and 2 deletions

View file

@ -12,6 +12,12 @@
println(`element.classList after setting to className to "a a b c": "${element.classList.toString()}"`);
element.className = " a a b c ";
println(`element.classList after setting to className to " a a b c ": "${element.classList.toString()}"`);
try {
element.classList.replace(" ", "");
} catch (e) {
println(`element.classList.replace(" ", "") throws "${e.name}"`);
}
});
</script>
</html>