2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/EventTarget.idl>
|
2024-10-14 11:55:51 +02:00
|
|
|
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://dom.spec.whatwg.org/#event
|
2023-09-03 02:00:01 +12:00
|
|
|
[Exposed=*]
|
2020-06-21 16:10:48 +02:00
|
|
|
interface Event {
|
2021-09-29 01:43:24 +03:00
|
|
|
constructor(DOMString type, optional EventInit eventInitDict = {});
|
2021-02-17 22:52:40 +01:00
|
|
|
|
2020-06-21 16:10:48 +02:00
|
|
|
readonly attribute DOMString type;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute EventTarget? target;
|
2023-10-25 17:27:19 +02:00
|
|
|
readonly attribute EventTarget? srcElement; // legacy
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute EventTarget? currentTarget;
|
2021-10-16 05:25:53 +01:00
|
|
|
sequence<EventTarget> composedPath();
|
2020-11-21 18:32:39 +00:00
|
|
|
|
2021-10-19 03:41:21 +01:00
|
|
|
const unsigned short NONE = 0;
|
|
|
|
const unsigned short CAPTURING_PHASE = 1;
|
|
|
|
const unsigned short AT_TARGET = 2;
|
|
|
|
const unsigned short BUBBLING_PHASE = 3;
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute unsigned short eventPhase;
|
|
|
|
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined stopPropagation();
|
2024-10-14 11:55:51 +02:00
|
|
|
attribute boolean cancelBubble; // legacy alias of .stopPropagation()
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined stopImmediatePropagation();
|
2020-11-21 18:32:39 +00:00
|
|
|
|
|
|
|
readonly attribute boolean bubbles;
|
|
|
|
readonly attribute boolean cancelable;
|
2024-10-14 11:55:51 +02:00
|
|
|
attribute boolean returnValue; // legacy
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined preventDefault();
|
2020-11-21 18:32:39 +00:00
|
|
|
readonly attribute boolean defaultPrevented;
|
|
|
|
readonly attribute boolean composed;
|
|
|
|
|
2024-10-14 11:55:51 +02:00
|
|
|
[LegacyUnforgeable] readonly attribute boolean isTrusted;
|
|
|
|
readonly attribute DOMHighResTimeStamp timeStamp;
|
2021-04-10 20:11:04 +01:00
|
|
|
|
2024-10-14 11:55:51 +02:00
|
|
|
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // legacy
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2021-09-29 01:43:24 +03:00
|
|
|
|
|
|
|
dictionary EventInit {
|
|
|
|
boolean bubbles = false;
|
|
|
|
boolean cancelable = false;
|
|
|
|
boolean composed = false;
|
|
|
|
};
|