- From: Pierre-Yves Gérardy <notifications@github.com>
- Date: Tue, 04 Feb 2020 02:51:31 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 4 February 2020 10:51:33 UTC
Another way to tackle this would be to make a new kind of mindful fragments (by contrast to the current amnesic ones). ```JS const frag = document.createDocumentFragment() frag.mindful = true frag.append('a', 'b') document.body.append(frag) frag.estranged // true frag.childNodes.length // 0 frag.append('c') // throws frag.reclaimChildren() frag.estranged // false frag.childNodes.length // 2 frag.append('c') // works `` Reclaiming a fragment with nested fragments would work recursively. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/828#issuecomment-581850918
Received on Tuesday, 4 February 2020 10:51:33 UTC