GumboElement

The struct used to represent all HTML elements. This contains information about the tag, attributes, and child nodes.

Members

Variables

attributes
GumboVector attributes;

An array of GumboAttributes, containing the attributes for this tag in the order that they were parsed. Pointers are owned.

children
GumboVector children;

An array of GumboNodes, containing the children of this element. Pointers are owned.

end_pos
GumboSourcePosition end_pos;

The source position for the start of the end tag.

original_end_tag
GumboStringPiece original_end_tag;

A GumboStringPiece pointing to the original end tag text for this element. If the end tag was inserted algorithmically, (for example, closing a self-closing tag), this will be a zero-length string.

original_tag
GumboStringPiece original_tag;

A GumboStringPiece pointing to the original tag text for this element, pointing directly into the source buffer. If the tag was inserted algorithmically (for example, <head> or <tbody> insertion), this will be a zero-length string.

start_pos
GumboSourcePosition start_pos;

The source position for the start of the start tag.

tag
GumboTag tag;

The GumboTag enum for this element.

tag_namespace
GumboNamespaceEnum tag_namespace;

The GumboNamespaceEnum for this element.

Meta