Skip to main content
Module

x/deno_dom/src/dom/nwsapi-types.ts

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
File
import NWDom from "./nwsapi.js";import type { Element } from "./element.ts";import type { Document } from "./document.ts";
export const DOM: (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[],} = <any> NWDom;