Re: [whatwg/dom] [Proposal] Add EventTarget.getEventListeners() (#412)

Okay, true that; I did not realize that you were talking about "any single event handler" as opposed to dispatching an event to all handlers.
Based on the "credentials" you mean, it may happen that many of you are not used to the "dark side of event handlers".
I juggle quite frequently with things like "single page event handlers", when somebody, typically with jQuery, implemented some thing inside a handler, then found it easier to just trigger that handler instead of relocating the code inside to an appropriate place, and, ... aaarggh.
But the worst of all is when you cannot open a link with ctrl+click (or.. um.. command, whatever) on a page, because someone put a google tag manager event whatnot on the click event, that redirects instantly after clicking, ctrl or otherwise.
Or when the script is blocked by some privacy-savvy approach, then it returns false, or throws an error, and the site is completely unnavigable (except for contextmenu -> open in new tab).

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

Received on Wednesday, 24 April 2019 21:23:10 UTC