Skip to main content
Module

x/evt/mod.ts>dom.NodeFilter

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.NodeFilter
import { type dom } from "https://deno.land/x/evt@v2.4.3/mod.ts";
const { NodeFilter } = dom;

An object used to filter the nodes in a NodeIterator or TreeWalker. They don't know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter.

Methods

acceptNode(node: Node): number