Gumbo 0.9.2
A C library for parsing HTML.
Loading...
Searching...
No Matches
GumboNode Struct Reference

#include <gumbo.h>

Data Structures

union  [union].v

Data Fields

GumboNodeType type
GumboNode * parent
size_t index_within_parent
GumboParseFlags parse_flags
union  v

Detailed Description

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.

Field Documentation

◆ type

GumboNodeType GumboNode::type

The type of node that this is.

◆ parent

GumboNode* GumboNode::parent

Pointer back to parent node. Not owned.

◆ index_within_parent

size_t GumboNode::index_within_parent

The index within the parent's children vector of this node.

◆ parse_flags

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.


The documentation for this struct was generated from the following file: