import { default } from "https://deno.land/x/html_parser@v0.1.3/src/DomHandler.ts";
Constructors
Properties
private
readonly
options: DomHandlerOptionsSettings for the handler.
Reference to the parser instance. Used for location information.
protected
lastNode: DataNode | nullA data node that is still being written to.
protected
tagStack: NodeWithChildren[]Stack of open tags.
dom: Node[]
The elements of the DOM
root: Document
The root element for the DOM
Methods
protected
handleCallback(error: Error | null): voidoncdataend(): void
oncdatastart(): void
onclosetag(): void
oncomment(data: string): void
oncommentend(): void
onend(): void
onerror(error: Error): void
onopentag(name: string, attribs: { [key: string]: string; }): void
onparserinit(parser: ParserInterface): void
onprocessinginstruction(name: string, data: string): void
onreset(): void
ontext(data: string): void