mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 06:35:06 +00:00

This is not a complete implementation of API, since we're also supposed to accept an options dictionary as the third argument. However, a lot of web content uses the boolean variant, and it's trivial to support.
9 lines
383 B
Text
9 lines
383 B
Text
interface EventTarget {
|
|
|
|
// FIXME: Both of these should take in options
|
|
undefined addEventListener(DOMString type, EventListener? callback, optional boolean useCapture = false);
|
|
undefined removeEventListener(DOMString type, EventListener? callback, optional boolean useCapture = false);
|
|
|
|
[ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
|
|
|
|
};
|