Name of the tag, eg. div
, span
.
Object mapping attribute names to attribute values.
Optional
children: ChildNode[]Children of the node.
Optional
type: Script | Style | TagThe end index of the node. Requires withEndIndices
on the handler to be `true.
Optional
namespaceElement namespace (parse5 only).
Next sibling
Parent of the node
Previous sibling
Optional
sourceparse5
source code location info, with start & end tags.
Available if parsing with parse5 and location info is enabled.
The start index of the node. Requires withStartIndices
on the handler to be `true.
Optional
x-Element attribute namespaces (parse5 only).
Optional
x-Element attribute namespace-related prefixes (parse5 only).
First child of the node.
Last child of the node.
Clone this node, and optionally its children.
A clone of the node.
Optional
recursive: booleanClone child nodes as well.
An element within the DOM.