DefaultHandler
class DefaultHandler { }
constructor(
callback?: Callback | null,
options?: DomHandlerOptions | null,
elementCB?: ElementCallback,
);private readonly callback;
private done;
private readonly elementCB;
private readonly options;
private parser;
protected lastNode: DataNode | null;
protected tagStack: NodeWithChildren[];
dom: Node[];
root: Document;
protected handleCallback(error: Error | null): void;
oncdataend(): void;
oncdatastart(): void;
onclosetag(): void;
oncomment(data: string): void;
oncommentend(): void;
onend(): void;
onerror(error: Error): void;
onopentag(name: string, attribs: {}): void;
[key: string]: string;
onparserinit(parser: ParserInterface): void;
onprocessinginstruction(name: string, data: string): void;
onreset(): void;
ontext(data: string): void;