Module

x/deno_dom/src/dom/utils.ts>moveDocumentFragmentChildren

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
function moveDocumentFragmentChildren
import { moveDocumentFragmentChildren } from "https://dotland.deno.dev/x/deno_dom@v0.1.36-alpha/src/dom/utils.ts";

Sets the new parent for the children via _setParent() on all the child nodes and removes them from the DocumentFragment's childNode list.

A helper function for appendChild, etc. It should be called after the children are already pushed onto the new parent's childNodes.

Parameters

newParent: Node