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

annevk left a comment (whatwg/dom#412)

I'm going to close this as I don't think the original idea of exposing the listeners as-is is something we ever want to do as breaking people's existing encapsulation setups would not be okay. As per https://dom.spec.whatwg.org/#observing-event-listeners observing event listeners is an anti-pattern.

If anyone is keen to reopen this topic in some way I recommend keeping https://whatwg.org/faq#adding-new-features in mind.

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

Message ID: <whatwg/dom/issues/412/4912396163@github.com>

Received on Wednesday, 8 July 2026 07:27:27 UTC