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

x/html_parser/src/mod.ts>TokenizerCallbacks

Port of fb55/htmlparser2 for Deno
Latest
interface TokenizerCallbacks
import { type TokenizerCallbacks } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";

Methods

onattribdata(value: string): void
onattribend(quote: string | undefined | null): void
onattribname(name: string): void
oncdata(data: string): void
onclosetag(name: string): void
oncomment(data: string): void
ondeclaration(content: string): void
onend(): void
onerror(error: Error, state?: State): void
onopentagend(): void
onopentagname(name: string): void
onprocessinginstruction(instruction: string): void
onselfclosingtag(): void
ontext(value: string): void