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

x/html_parser/src/utils/mod.ts>prependChild

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

Prepend a child to an element.

Parameters

elem: Element

The element to prepend before.

child: Node

The element to be added as a child.