Skip to main content
Module

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

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.XPathExpression
import { type dom } from "https://deno.land/x/evt@v2.4.3/lib/types/index.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