1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 06:35:06 +00:00
serenity/Userland/Libraries/LibWeb/DOM/EventTarget.idl
Andreas Kling 9521f71944 LibWeb: Support "useCapture" parameter to add/removeEventListener
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.
2022-02-16 22:21:45 +01:00

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);
};