Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Handler

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

§Methods

§
onattribute(
name: string,
value: string,
quote?: string | undefined | null,
): void
[src]
@param name

Name of the attribute

@param value

Value of the attribute.

@param quote

Quotes used around the attribute. null if the attribute has no quotes around the value, undefined if the attribute has no value.

§
oncdataend(): void
[src]
§
oncdatastart(): void
[src]
§
onclosetag(name: string): void
[src]
§
oncomment(data: string): void
[src]
§
oncommentend(): void
[src]
§
onend(): void
[src]

Signals the handler that parsing is done

§
onerror(error: Error): void
[src]
§
onopentag(name: string, attribs: {
[s: string]: string;
}
): void
[src]
§
onopentagname(name: string): void
[src]
§
onparserinit(parser: Parser): void
[src]
§
onprocessinginstruction(name: string, data: string): void
[src]
§
onreset(): void
[src]

Resets the handler back to starting state

§
ontext(data: string): void
[src]