How to list all registered events of a DOM node using JavaScript?

DOM Level 3 specifies eventListenerList - however, I'm not aware of any DOM implementation which supports this - or any other reliable way to list the event listeners. It seems to have been an oversight to this point.


This works for Chrome/Safari console:

getEventListeners(document.getElementByID('myElementId'));

I know this is an old question, but just in case, for chrome you can use getEventListeners

getEventListeners function

as mentioned here:

https://stackoverflow.com/a/17466308/538752