1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:14:58 +00:00
serenity/Userland/Libraries/LibWeb/DOM/Event.idl
2021-02-17 23:45:07 +01:00

26 lines
757 B
Text

interface Event {
// FIXME: second parameter: 'optional EventInit eventInitDict = {}'
constructor(DOMString type);
readonly attribute DOMString type;
readonly attribute EventTarget? target;
readonly attribute EventTarget? srcTarget;
readonly attribute EventTarget? currentTarget;
readonly attribute unsigned short eventPhase;
undefined stopPropagation();
attribute boolean cancelBubble;
undefined stopImmediatePropagation();
readonly attribute boolean bubbles;
readonly attribute boolean cancelable;
attribute boolean returnValue;
undefined preventDefault();
readonly attribute boolean defaultPrevented;
readonly attribute boolean composed;
readonly attribute boolean isTrusted;
};