3 Apr 2008 19:41
Re: Finding events on a page added using addEventListener
Jon <jon <at> isbell.net>
2008-04-03 17:41:17 GMT
2008-04-03 17:41:17 GMT
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
RSS Feed