W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2012

[Bug 16142] Spec delivery semantics for MutationObservers

From: <bugzilla@jessica.w3.org>
Date: Wed, 29 Feb 2012 18:18:41 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1S2o6r-00075A-FR@jessica.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 February 2012 18:18:44 GMT