mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Perform DOMTokenList token validation in the correct order
This commit is contained in:
parent
ec1f7779cb
commit
0127190dcf
Notes:
github-actions[bot]
2024-07-25 04:44:23 +00:00
Author: https://github.com/tcl3
Commit: 0127190dcf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/817
4 changed files with 26 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue