Jon | 3 Apr 2008 19:41

Re: Finding events on a page added using addEventListener

On Apr 3, 6:00 pm, Boris Zbarsky <bzbar... <at> mit.edu> wrote:
> Jon wrote:
> > document.addEventListener(
> >     "DOMNodeInserted",
> >     function(e) { catcher(e.target); },
> >     false
> > );
>
> Don't you also need to do this with the descendants of e.target?

I thought that but when I tested it, it appeared to work. Maybe its
not implemented correctly in gecko?

This is what the specs say.

http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-DOMNodeInserted
http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-DOMNodeInsertedIntoDocument

Jon
Boris Zbarsky | 3 Apr 2008 20:06
Picon
Favicon

Re: Finding events on a page added using addEventListener

Jon wrote:
>> Don't you also need to do this with the descendants of e.target?
> 
> I thought that but when I tested it, it appeared to work. Maybe its
> not implemented correctly in gecko?

It was last I checked.

-Boris
Jon | 4 Apr 2008 13:23

Re: Finding events on a page added using addEventListener

You are the expert! So I'm sure you are right. Thanks for all your
help.

Gmane