Skip to main content
Module

x/evt/mod.ts>dom.XPathExpression

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

This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree.

Methods

evaluate(
contextNode: Node,
type?: number,
result?: XPathResult | null,
): XPathResult