Creates a new Processing Instruction
Name value
Data value
Data contained by this node
Name of this processing instruction
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.
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 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 ProcessingInstructionNode
Node to check
Generated using TypeDoc
A Processing instruction node