import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { Node } = dom;
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.
Properties
Returns the children.
Returns the first child.
Returns the last child.
Returns the next sibling.
Returns the node document. Returns null for documents.
Returns the parent element.
Returns the parent.
Returns the previous sibling.
Methods
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Returns a bitmask indicating the position of other relative to node.
Returns true if other is an inclusive descendant of node, and false otherwise.
Returns node's root.
Returns whether node and otherNode have the same properties.
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.