Skip to main content
Module

x/evt/lib/types/index.ts>dom.TreeWalker

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.TreeWalker
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/types/index.ts";
const { TreeWalker } = dom;

The nodes of a document subtree and a position within them.

Properties

currentNode: Node
readonly
filter: NodeFilter | null
readonly
root: Node
readonly
whatToShow: number

Methods

firstChild(): Node | null
lastChild(): Node | null
nextNode(): Node | null
nextSibling(): Node | null
parentNode(): Node | null
previousNode(): Node | null
previousSibling(): Node | null