Node

Struct that represents a single node

Members

Variables

attributes
Attribute[] attributes;

Array of attributes that the tag has (empty if not tag)

content
string content;

Content in the Node. The tag name if a tag, and the content if it is TagType.content

nodeType
NodeType nodeType;

The type of node

original
string original;

Contains original content of the node. Helpful for quickly reconstructing the page after parsing.

tagType
TagType tagType;

The type of tag (None if not tag)

Meta