W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2014

Re: MutationObserver - a better interface

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 11 Feb 2014 15:44:17 +0000
Message-ID: <CADnb78jj-CeVd2BGjiqNDOQ=mNfM+4UUs6bzuntWKUcRrTCVUg@mail.gmail.com>
To: Axel Dahmen <brille1@hotmail.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
On Tue, Feb 11, 2014 at 3:39 PM, Axel Dahmen <brille1@hotmail.com> 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.

Received on Tuesday, 11 February 2014 15:44:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:04 UTC