Skip to main content
Module

x/deno_dom/src/dom/selectors/nwsapi-types.ts>DOM

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
variable DOM
import { DOM } from "https://deno.land/x/deno_dom@v0.1.45/src/dom/selectors/nwsapi-types.ts";

type

(doc: Document) => { ancestor(
selector: string,
context: Element | Document,
callback?: (element: Element) => void,
): Element | null; first(
selector: string,
context: Element | Document,
callback?: (element: Element) => void,
): Element | null; match(
selector: string,
context: Element | Document,
callback?: (element: Element) => void,
): boolean; select(
selector: string,
context: Element | Document,
callback?: (element: Element) => void,
): Element[]; byId(id: string, from: Element | Document): Element[]; byTag(tag: string, from: Element | Document): Element[]; byClass(tag: string, from: Element | Document): Element[]; }