mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Follow the specification steps to serialize a DOMTokenList
This ensures that calling `element.classList.toString()` always produces the correct value.
This commit is contained in:
parent
21e21abeed
commit
ec1f7779cb
Notes:
github-actions[bot]
2024-07-25 04:44:28 +00:00
Author: https://github.com/tcl3
Commit: ec1f7779cb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/817
4 changed files with 17 additions and 3 deletions
|
@ -8,6 +8,10 @@
|
|||
println(`element.classList after setting classList to "a": "${element.classList.toString()}"`);
|
||||
element.className = "";
|
||||
println(`element.classList after setting className to "": "${element.classList.toString()}"`);
|
||||
element.className = "a a b c";
|
||||
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()}"`);
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue