Skip to main content
Module

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

Browser DOM & HTML parser in Deno
Very Popular
Go to Latest
function moveDocumentFragmentChildren
import { moveDocumentFragmentChildren } from "https://deno.land/x/deno_dom@v0.1.43/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