interface Node
implements EventTarget
import { type Node } from "https://deno.land/x/windmill@v1.320.3/node_modules/evt/lib/types/lib.dom.d.ts";
Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.
Methods
appendChild<T extends Node>(newChild: T): T
cloneNode(deep?: boolean): Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
compareDocumentPosition(other: Node): number
Returns a bitmask indicating the position of other relative to node.
contains(other: Node | null): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
isEqualNode(otherNode: Node | null): boolean
Returns whether node and otherNode have the same properties.
isSameNode(otherNode: Node | null): boolean
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
removeChild<T extends Node>(oldChild: T): T