On Mon, Aug 17, 2015 at 10:43 AM, Manuel Reimer <[email protected]>
wrote:

> Is there some simple, efficient way to detect this case?
>
> I already tried "document.body.contains" but this didn't do the trick for
> me.
>

That (or just document.contains) should work. Please post a reduced
testcase if it doesn't.


> Or is it better to just ignore this (maybe pretty rare) case and handle
> "detached trees" just like they would still be connected to the website?
>

Depends on what you're trying to do.

When is my "detached subtree" actually purged from memory?


In general, when all of the references to it from JavaScript go away.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to