Gumbo
0.9.2
A C library for parsing HTML.
|
#include <gumbo.h>
Data Fields | |
GumboNodeType | type |
GumboNode * | parent |
size_t | index_within_parent |
GumboParseFlags | parse_flags |
union { | |
GumboDocument document | |
GumboElement element | |
GumboText text | |
} | v |
A supertype for GumboElement and GumboText, so that we can include one generic type in lists of children and cast as necessary to subtypes.
Forward declaration of GumboNode so it can be used recursively in GumboNode.parent.
GumboNodeType GumboNode::type |
The type of node that this is.
GumboNode* GumboNode::parent |
Pointer back to parent node. Not owned.
size_t GumboNode::index_within_parent |
The index within the parent's children vector of this node.
GumboParseFlags GumboNode::parse_flags |
A bitvector of flags containing information about why this element was inserted into the parse tree, including a variety of special parse situations.
union { ... } GumboNode::v |
The actual node data.