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

@ -3,3 +3,4 @@ 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 "
element.classList.replace(" ", "") throws "SyntaxError"