1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

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.
This commit is contained in:
Andreas Kling 2022-02-16 22:15:17 +01:00
parent e76e8e22b5
commit 9521f71944
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
interface EventTarget {
// FIXME: Both of these should take in options
undefined addEventListener(DOMString type, EventListener? callback);
undefined removeEventListener(DOMString type, EventListener? callback);
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);