Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/mod.ts>DomUtils.appendChild

Port of fb55/htmlparser2 for Deno
Latest
function DomUtils.appendChild
import { DomUtils } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";
const { appendChild } = DomUtils;

Append a child to an element.

Parameters

elem: Element

The element to append to.

child: Node

The element to be added as a child.