mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
LibWeb: Implement ToggleEvent for HTMLDetailsElement
This commit is contained in:
parent
f598a357ad
commit
153ae93f9c
6 changed files with 98 additions and 3 deletions
14
Userland/Libraries/LibWeb/HTML/ToggleEvent.idl
Normal file
14
Userland/Libraries/LibWeb/HTML/ToggleEvent.idl
Normal file
|
@ -0,0 +1,14 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#toggleevent
|
||||
[Exposed=Window]
|
||||
interface ToggleEvent : Event {
|
||||
constructor(DOMString type, optional ToggleEventInit eventInitDict = {});
|
||||
readonly attribute DOMString oldState;
|
||||
readonly attribute DOMString newState;
|
||||
};
|
||||
|
||||
dictionary ToggleEventInit : EventInit {
|
||||
DOMString oldState = "";
|
||||
DOMString newState = "";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue