domhandler
    Preparing search index...

    Class DomHandler

    Event-based handler that builds a DOM tree from parser callbacks.

    Index

    Constructors

    Properties

    dom: ChildNode[] = []

    The elements of the DOM

    lastNode: DataNode | null = null

    A data node that is still being written to.

    root: Document = ...

    The root element for the DOM

    tagStack: ParentNode[] = ...

    Stack of open tags.

    Methods

    • Parameters

      • error: Error | null

      Returns void

    • Parameters

      • data: string

      Returns void

    • Parameters

      • error: Error

      Returns void

    • Parameters

      • name: string
      • attribs: { [key: string]: string }

      Returns void

    • Parameters

      • name: string
      • data: string

      Returns void

    • Parameters

      • data: string

      Returns void