Triggered when the node
must be added to the list of children of the parentNode
.
The container node to which node
must be appended.
The node to append to parentNode
as a child.
Creates a new CDATA section node.
The CDATA section token.
The DOM node that describes a CDATA section.
Creates a new comment node.
The comment token.
The DOM node that describes a comment.
Triggered when an element or a document was fully read from source.
The element or document node for which the end token was read.
The token that closes the container.
Creates a new document node when a DOCTYPE was read.
The DOCTYPE token.
The DOM node that document container.
Creates a new element node.
The start tag token that denotes the opened element.
The new element node.
Creates a new processing instruction node.
The processing instruction token.
The DOM node that describes a processing instruction.
Triggered when the parser internal state was reset.
Triggered when parsing of the source is completed.
The number of chars that were read from the source.
Creates a new text node.
The text token.
The DOM node that describes a text.
Generated using TypeDoc
Defines node factories and callbacks that are invoked during DOM parsing.
Note: Don't keep references to tokens! Tokens passed to some of the handler callbacks are pooled objects that are reused by the parser after callback finishes. Make a deep copy using IToken.clone to retain a token.