1
Fork 0
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:
Timothy Flynn 2023-08-31 13:28:49 -04:00 committed by Andreas Kling
parent f598a357ad
commit 153ae93f9c
6 changed files with 98 additions and 3 deletions

View 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 = "";
};