mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
08589741f5
This commit implements the default value of the passive attribute of event listeners according to the spec.
26 lines
803 B
Text
26 lines
803 B
Text
#import <DOM/AbortSignal.idl>
|
|
|
|
// https://dom.spec.whatwg.org/#eventtarget
|
|
[Exposed=*]
|
|
interface EventTarget {
|
|
constructor();
|
|
|
|
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
|
|
undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
|
|
[ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
|
|
};
|
|
|
|
// FIXME: support callback interface
|
|
//callback interface EventListener {
|
|
// undefined handleEvent(Event event);
|
|
//};
|
|
|
|
dictionary EventListenerOptions {
|
|
boolean capture = false;
|
|
};
|
|
|
|
dictionary AddEventListenerOptions : EventListenerOptions {
|
|
boolean passive;
|
|
boolean once = false;
|
|
AbortSignal signal;
|
|
};
|