- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 21 Mar 2018 16:01:31 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 21 March 2018 16:02:03 UTC
So, we could give each "registered observer" a "transient registered observer node list". When removing a node, in step 16 of https://whatpr.org/dom/609.html#concept-node-remove, aside from appending a new transient registered observer to _node_'s registered observer list, we also append _node_ to _registered_'s transient registered observer node list. Then we could rewrite step 7 of https://whatpr.org/dom/609.html#dom-mutationobserver-observe to use this new node list on _registered_ to remove the transient registered observers from those nodes. However, we also remove transient registered observers in https://whatpr.org/dom/609.html#notify-mutation-observers based on the observer field. Should `MutationObserver` (the value of that observer field) also keep a list of nodes that have transient registered observers? @ajklein if you could help with this further formalizing of mutation observers that'd be appreciated. If it's too much to page in I can relate. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/609#issuecomment-374994180
Received on Wednesday, 21 March 2018 16:02:03 UTC