As an example, if you observe a node with a MutationObserver, but unmount it and don't retain an explicit reference to it, your mutation observer will soon stop providing updates, since it only maintains a weak reference to the node by spec. It can be observed.
On Tue, Feb 16, 2016, 22:09 Mark S. Miller <[email protected]> wrote: > What are the GC semantics specified for DOM? How are these observable? > > > On Tue, Feb 16, 2016 at 7:04 PM, Isiah Meadows <[email protected]> > wrote: > >> I know this is only tangentially related, but I just remembered weak refs >> are required for a fully conforming DOM implementation because of their GC >> semantics. I feel this is relevant with the semi-recent DOM-in-JS efforts. >> >> On Tue, Feb 16, 2016, 20:24 Allen Wirfs-Brock <[email protected]> >> wrote: >> >>> Ecma International needs to capture a accurate historical archive of >>> the contributions and deliberation that goes into TC39’s design decisions. >>> The current “policy” of TC39 is that once a proposal reaches Stage 1 is >>> MUST be hosted on the TC39 github site. However, when a proposal, like >>> this one, is actively being developed using contributions (eg, discussion) >>> by multiple TC39 members it seems like the record of that SHOULD be >>> included in the Ecma archives. The best way to ensure that is for such >>> discussion to be hosted on the TC39 github account, even if the proposal is >>> only at stage 0. >>> >>> Allen >>> >>> >>> _______________________________________________ >>> es-discuss mailing list >>> [email protected] >>> https://mail.mozilla.org/listinfo/es-discuss >>> >> > > > -- > Cheers, > --MarkM >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

