[Bug 16142] Spec delivery semantics for MutationObservers

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16142

--- Comment #5 from Adam Klein <adamk@chromium.org> 2012-02-29 18:18:40 UTC ---
(In reply to comment #4)
> Oh yes, and the million dollar question, what about garbage collection?

Not sure exactly what you're asking about, but the records would normally be
GCed after the last observer with that record in its queue has been called
(unless of course the observers take their own references).  Which implies that
the nodes referred to by those records would also be collectable (if they're no
longer in the document or referred to elsewhere).

As for the MutationObserver instances themselves, the WebKit approach is to
give them weak references to the nodes they observe: if the node is collected,
and there are no more references to the observer, it can also be collected.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 29 February 2012 18:18:44 UTC