Creates a new NodeWithText
Type of node, for Node() constructor
Content of this NodeWithText
If true, whitespace in this node is considered significant. See NodeWithText.isWhitespaceSensitive.
Indicates if the text contained by this node is whitespace-sensitive. If true, then the exact whitespace should be preserved. This includes leading and trailing newlines
Next sibling node, or null if none exists. Do not modify this directly, use NodeLogic or instance methods.
Extra DOM data associated with this node. This object prototypically inherits from the parent node's nodeData.
Set of unique string tags applied to this node. These tags do not inherit and are unique to each instance. Meaning is tag-specific.
Type of this node
Parent of this node, or null if there is none. Do not modify this directly, use NodeLogic or instance methods.
Previous sibling node, or null if none exists. Do not modify this directly, use NodeLogic or instance methods.
If this node contains any non-whitespace text
The closest following sibling that is a TagNode, or null if none exists.
The closest following sibling that is a TextNode, or null if none exists.
The closest previous sibling that is a TagNode, or null if none exists.
The closest previous sibling that is a TextNode, or null if none exists.
Text contained by this node
Text contained by this node
Text contained by this node, with leading and trailing whitespace trimmed.
Inserts a sibling node after this one
Node to insert
Finds the next node that matches a callback. The next node is defined as the first matching child, sibling, or sibling's child node starting from this node. This only checks child and sibling nodes, it will not move further up the DOM tree. To check only sibling nodes, set node to false.
Callback to test nodes
If true or not specified, then child nodes will be checked
The first matching node, or null if none found.
Inserts a sibling node before this one
Node to insert
Remove this node and all children from the DOM
Remove this node and all children from the DOM, and insert one or more nodes in its place
Nodes to insert in replacement. Can be empty.
Serializes this node into HTML. Child nodes will be automatically serialize.
HTML text representation of this node
Returns true if a node is an instance of NodeWithText
Node to check
Generated using TypeDoc
Parent type for any node that includes textual data