Re: [dom] Disconnect single target instead of all (#126)

So even if MutationObserver keeps observing nodeA after calling disconnect(nodeB), the records which were created because of observing nodeA, are just lost. Feels a bit odd to me, and error prone.
One needs to remember to call takeRecords to not have stuff lost.

For the original use case would something like suppress(node)/unsuppress(node) work? It wouldn't affect to the queued records, but would just prevent creating new ones for the particular registered observer or relevant transient observers.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/126#issuecomment-167597753

Received on Monday, 28 December 2015 16:22:38 UTC