Will I be able to get a list of registered event handlers on a DOM node inside a Firefox extension?
-
19-09-2019 - |
Question
I don't know a thing about implementing extensions in Firefox, but having not seen an extension that does anything like this in the Mozilla's addons page, I don't believe it is possible, but thought I will ask about it anyway.
Solution
Yes, in Firefox 3.6: https://bugzilla.mozilla.org/show_bug.cgi?id=448602
OTHER TIPS
Answer seems to be 'not yet'. http://www.quirksmode.org/js/events_advanced.html says
One problem of the current implementation of W3C’s event registration model is that you can’t find out if any event handlers are already registered to an element.
and
Only in its very recent DOM Level 3 Events W3C adds an
eventListenerList
to store a list of event handlers that are currently registered on an element. This functionality is not yet supported by any browser, it’s too new.