Re: MutationObserver - a better interface

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78jj-CeVd2BGjiqNDOQ=mNfM+4UUs6bzuntWKUcRrTCVUg@mail.gmail.com>
On Tue, Feb 11, 2014 at 3:39 PM, Axel Dahmen <[email protected]> wrote:
> Moreover: If there is a MutationObserver attached to a node and if that node
> gets deleted from the DOM, the corresponding observer must automatically
> disconnect and the internal “Node <> CallBackFunction” entry must be removed
> from the MutationObserver's internal dictionary.

No you don't want that. If a node is removed from the DOM nodes can
still be inserted into and in fact while it is removed it can be that
it is being inserted someplace else.

And yes, we're not going to change the current API.


-- 
http://annevankesteren.nl/
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.