Re: Identifying the DOM Node that dynamically changed?
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
stony_dreams wrote: > I observed that DOMNodeRemoved and DOMNodeInserted events are fired but > DOMSubtreeModified is never fired. What Gecko version? Gecko 1.8.x doesn't do DOMSubtreeModified. Gecko 1.9 will. > I think that on every node removed or > added, the Subtree Modified event should also be fired... right? Well.... Not necessarily. Per spec, DOMSubtreeModified can fire only once per multiple changes. That's one of the reasons it wasn't implemented before; it's not clear what a "correct" implementation is. In Gecko 1.9 we do coalesce mutations somewhat in some cases, as I recall. -Boris