Optionalcallback: Callback | nullCalled once parsing has completed.
Optionaloptions: DomHandlerOptions | nullSettings for the handler.
OptionalelementCB: ElementCallbackCallback whenever a tag is closed.
The elements of the DOM
ProtectedlastA data node that is still being written to.
The root element for the DOM
ProtectedtagStack of open tags.
ProtectedaddProtectedhandle
Event-based handler that builds a DOM tree from parser callbacks.