@tempots/dom

DOMContext.makeChildText() method

Creates a new text node with the specified text content and appends it to the current element.

Signature:

makeChildText(text: string): DOMContext;

Parameters

Parameter

Type

Description

text

string

The text content for the new text node.

Returns: DOMContext

A new DOMContext with a reference to the new text node.