Attributes on this tag node. Do not modify directly, use attribute API instance methods.
Children of this node. Do not modify this directly, use NodeLogic or instance methods.
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.
Name of the tag
If true, then this anchor tag will be processed by Mooltipage. If false, then it will be passed on unchanged.
The first child node of this parent, or null if there are no children.
The first child node that is a TagNode, or null if there is none.
The first child node that is a TextNode, or null if there is none.
The last child node of this parent, or null if there are no children.
The last child node that is a TagNode, or null if there is none.
The last child node that is a TextNode, or null if there is none.
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.
Inserts a child at the end of this parent's children
Node to insert
Append multiple children to the end of this parent's child list
Child nodes to append. Can be empty.
Inserts a sibling node after this one
Node to insert
Removes all children from this node
Removes all children from this node and creates a new DocumentNode containing them.
the created DocumentNode
Removes an attribute from this tag
Name of the attribute
Finds the first child node that matches a condition. Returns null if no match found.
Callback to test condition
If true, children of child nodes will also be searched.
First matching child, or null
Finds the first child node of a specified type. Returns null if none found.
Type of node to match
If true, children of child nodes will also be searched.
The first node that matches, or null
Finds all child nodes that match a condition. Returns an empty array if no matches found.
Callback to test condition
If true, children of child nodes will also be searched.
Array of all Nodes that match condition
Finds all child nodes of a specified type.
Type of node to match
If true, children of child nodes will also be searched.
Array of all matching child nodes
Finds the first child TagNode that matches a condition. Returns null if no match found.
Callback to test condition
If true, children of child nodes will also be searched.
First TagNode that matches the condition, or null.
Finds the first child TagNode with the specified tag name. Result may be a subclass of TagNode if a custom tag type is specified. Returns null if none found.
Tag name to match
If true, children of child nodes will also be searched.
First matching TagNode, or null.
Finds all child TagNodes that match a condition. Returns an empty array if no matches found.
Callback to test condition
If true, children of child nodes will also be searched.
Array of all TagNodes that match condition
Finds all child TagNodes with the specified tag name. Results may be a subclass of TagNode if a custom tag type is specified. Returns null if none found.
Tag name to match
If true, children of child nodes will also be searched.
Array of all matching TagNodes
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.
Gets the value of an attribute, or undefined the attribute does not exist
Name of the attribute
Value of the attribute, converted to a string if not null or undefined
Gets a ReadonlyMap containing all attributes on this tag. Attributes are exposed raw - not converted to strings.
a read-only Map containing all attributes
Gets all child TagNodes from this parent
array of TagNodes containing all child tags
Gets the value of an attribute, or returns undefined if the attribute does not exist. Throws an exception if attribute value is null.
Name of the attribute
Value of the attribute (converted to a string) or undefined if it does not exist
Gets the raw (non-string) value of an attribute. May be any value.
Name of the attribute
Raw value of the attribute
Gets the value of an attribute, or throws an exception if the attribute does not exist
Name of the attribute
Value of the attribute, converted to a string if not null
Gets the value of an attribute, or throws an exception if the attribute does not exist or the value is null
Name of the attribute
Value of the attribute, converted to a string
Checks if this tag has a specified attribute
Name of the attribute
True if the attribute exists, false otherwise
Checks if this tag has a specified attribute with a non-null and non-undefined value
Name of the attribute
True if the attribute exists and is non-nullish, false otherwise
Inserts a child at the start of this parent's children
Node to insert
Prepend multiple children to the start of this parent's child list
Child nodes to prepend. Can be empty.
Inserts a sibling node before this one
Node to insert
Removes this node from the DOM, but optionally preserves children. If keepChildren is true, then child nodes will be reattached to the DOM in place of this node. Effectively "promotes" child nodes.
If true, child nodes will be kept.
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.
Sets the value of an attribute
Name of the attribute
Value of the attribute
Sets the value of a boolean attribute. A boolean attribute has no value, it only exists or does not exist.
Name of the attribute
Value of the attribute
Sets the value of an attribute, or deletes it if undefined.
Name of the attribute.
Value to set, or undefined to delete
Sets an attribute to any value, even a non-string
Name of the attribute
Value of the attribute
Sets the value of an attribute that cannot be null
Name of the attribute
Value of the attribute
Serializes this node into HTML. Child nodes will be automatically serialize.
HTML text representation of this node
Returns true if a node is an AnchorNode
Node to check
Returns true if a node is an instance of NodeWithChildren
Node to check
Returns true if a node is an UncompiledAnchorNode
Node to check
Generated using TypeDoc
AnchorTag that will be ignored by Mooltipage