2023-08-31 13:28:49 -04:00
|
|
|
#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;
|
2025-06-04 15:35:43 +10:00
|
|
|
readonly attribute Element? source;
|
2023-08-31 13:28:49 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dictionary ToggleEventInit : EventInit {
|
|
|
|
|
DOMString oldState = "";
|
|
|
|
|
DOMString newState = "";
|
2025-11-27 16:55:34 +00:00
|
|
|
Element? source = null;
|
2023-08-31 13:28:49 -04:00
|
|
|
};
|