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:
parent
d24ae8063b
commit
14349f058a
3 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue