Re: [whatwg/dom] Update the "convert nodes into a node" to accept arrays of nodes. (#828)

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