summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Event.idl
blob: 1b998c6e11a21eae0754c8eea01b949bb99bc29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;

    undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);

};