Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/MultiplexHandler.ts>default

Port of fb55/htmlparser2 for Deno
Latest
class default
implements Handler
import { default } from "https://deno.land/x/html_parser@v0.1.3/src/MultiplexHandler.ts";

Calls a specific handler function for all events that are encountered.

Constructors

new
default(func: (event: keyof Handler, ...args: unknown[]) => void)

Methods

onattribute(
name: string,
value: string,
quote: string | null | undefined,
): void
oncdataend(): void
oncdatastart(): void
onclosetag(name: string): void
oncomment(comment: string): void
oncommentend(): void
onend(): void
onerror(error: Error): void
onopentag(name: string, attribs: { [key: string]: string; }): void
onopentagname(name: string): void
onparserinit(parser: Parser): void
onprocessinginstruction(name: string, value: string): void
onreset(): void
ontext(text: string): void