class HTMLElement
extends Node
import { HTMLElement } from "https://deno.land/x/ink@1.3/tsdom/tsdom.ts";
HTMLElement, which contains a set of children.
Note: this is a minimalist implementation, no complete tree structure provided (no parentNode, nextSibling, previousSibling etc).
Constructors
Properties
private
_attrs: Attributesprivate
_rawAttrs: RawAttributesMethods
appendChild<T extends Node = Node>(node: T)
Append a child node to childNodes
exchangeChild(oldNode: Node, newNode: Node)
Exchanges given child with new child
querySelector(selector: string | Matcher)
Query CSS Selector to find matching node.
querySelectorAll(selector: string | Matcher)
Query CSS selector to find matching nodes.
removeChild(node: Node)
Remove Child element from childNodes array
Remove whitespaces in this sub tree.
set_content(content: string | Node | Node[])
toString()
trimRight(pattern: RegExp)
Trim element from right (in block) after seeing pattern in a TextNode.