As I'm iterating through DOM HTML nodes I want to determine if that particular node is set up to handle events (i.e. onclick, etc.), but I can not figure out how to do so. Ideally I'd like to know exactly what event they handle but just knowing if they handle events at all would probably be good enough. I've tried things like QI'ing to a nsIDOMEventTarget and nsIDOMEventReceiver thinking that only nodes with an actal handler would succeed but every HTML DOM node seems to support those. All the methods available seem to either involve adding or removing event handlers (nsIEventTarget supports AddEventListener and RemoveEventListener) but nothing like the obvious "GetEventListener". The other thing I tried was QI'ing to nsIDOM3EventTarget and calling "IsRegisteredHere" with the text name of an event (i.e. "onclick") but that didn't work either. I'm definitely running out of ideas! Do you have any? Thanks, John
_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
