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

createDomStream

Creates a parser instance, with an attached DOM handler.

function createDomStream(
cb: (error: Error | null, dom: Node[]) => void,
options?: Options,
elementCb?: (element: Element) => void,
): Parser;
§
createDomStream(cb: (error: Error | null, dom: Node[]) => void, options?: Options, elementCb?: (element: Element) => void): Parser
[src]

§Parameters

§
cb: (error: Error | null, dom: Node[]) => void
[src]

A callback that will be called once parsing has been completed.

§
options?: Options optional
[src]

Optional options for the parser and DOM builder.

§
elementCb?: (element: Element) => void optional
[src]

An optional callback that will be called every time a tag has been completed inside of the DOM.

§Return Type