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:
Tim Ledbetter 2024-07-23 13:09:11 +01:00 committed by Andreas Kling
commit ec1f7779cb
Notes: github-actions[bot] 2024-07-25 04:44:28 +00:00
4 changed files with 17 additions and 3 deletions

View file

@ -1,3 +1,5 @@
element.classList initial value: ""
element.classList after setting classList to "a": "a"
element.classList after setting className to "": ""
element.classList after setting to className to "a a b c": "a a b c"
element.classList after setting to className to " a a b c ": " a a b c "