1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:37:34 +00:00

LibWeb: Implement the Element classList attribute

And ensure it is updated (if it exists) when the 'class' attribute is
changed.
This commit is contained in:
Timothy Flynn 2021-10-18 13:21:23 -04:00 committed by Andreas Kling
parent d24ae8063b
commit 14349f058a
3 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,7 @@ interface Element : Node {
[Reflect] attribute DOMString id;
[Reflect=class] attribute DOMString className;
[SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
boolean matches(DOMString selectors);