Re: [whatwg/dom] Allow custom activation behavior to be added to an event (Issue #1320)

Gecko has a variant of "event group", so called system event group, and listeners in that are called after the normal DOM event dispatch. (And it was also exposed to XBL)
But I wouldn't add anything like that to the web, too complicated.

EventTargets could perhaps have some callback for activation behavior, and that could either override the native activation behavior, or other option is to control that using .preventDefault() if the callback gets the event as param.  Certain cases like nesting inside an anchor element might complicate things - which all activation behaviors should be triggered?



-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1320#issuecomment-2455157121
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1320/2455157121@github.com>

Received on Monday, 4 November 2024 16:26:25 UTC