Re: Finding events on a page added using addEventListener

Jon <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <aafed7bc-5ceb-4b46-8295-8fb6003e25fa@s37g2000prg.googlegroups.com>
On Apr 3, 6:00 pm, Boris Zbarsky <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.