This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Should MutationObserver own the nodes it is observing? I think not. If JS doesn't have a pointer to the node, it can't modify it. But if the original observe target is deleted, what should happen to the transient observers? I think they should still work (until the end of the microtask). That way GC/CC behavior isn't visible to the API user. Then MutationObserver object itself... I think the only way to hide GC/CC behavior is to keep MutationObserver object alive as long as the node(s) it is observing is/are alive.
Yes, that makes sense.
So MutationObserver has weak references to its nodes?
Yes, and nodes have strong references to the MutationObservers which are observing them
Is http://dom.spec.whatwg.org/#garbage-collection correct?
https://github.com/whatwg/dom/tree/eb59b065b161846cd3c35899a926ba7a426e837e
Sounds right to me
Yup, looks ok.