This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
If a component author needs to register an event on something other than their own shadow dom tree (perhaps something global accessed from window, or more likely Object.observe on a JS object), they need a way to unregister the handler so it doesn't leak the handler. Many of the popular web frameworks have some sort of "destory"/"disposable"/"removed" mechanism to help deal with this.
Yes, we have encountered this issue also. To avoid dangling references, a component needs to know when it's inserted/removed from DOM. Perhaps an event when parentNode changes?
*** This bug has been marked as a duplicate of bug 21660 ***