GumboNode(3)
π GumboNode(3) π
okay bestie, welcome to the GumboNode page β it's from the Gumbo manual and it is the glow-up moment of the C HTML parsing world, no cap. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
GumboNode β the main character struct of the whole tree. π
πΈ SYNOPSIS πΈ
#include <gumbo.h>
π Data Fields π
GumboNodeType typeGumboNode * parentsize_t index_within_parentGumboParseFlags parse_flagsunion {GumboDocument documentGumboElement elementGumboText text
} v
π¦ Detailed Description π¦
so basically it's a supertype for GumboElement and GumboText, which means we can drop one generic type into lists of children and cast it to whatever subtype we actually need. versatile queen behavior, honestly. π
it's also a forward declaration of GumboNode itself so it can be used recursively in GumboNode.parent β yes, a struct that contains a pointer to itself. iconic. self-referential and thriving. π
π Field Documentation π
β GumboNodeType GumboNode::type
The type of node that this is. simple as that, bestie.
π GumboNode* GumboNode::parent
Pointer back to the parent node. Not owned. so likeβ¦ you do not get to free it, it's not yours, hands off. π
π§ size_t GumboNode::index_within_parent
The index within the parent's children vector of this node. basically its spot in the lineup. πΈ
π₯ GumboParseFlags GumboNode::parse_flags
A bitvector of flags holding info about why this element got inserted into the parse tree, including a whole bunch of special parse situations. it's giving receipts for the parser's decisions. πβ¨
π union { ... } GumboNode::v
The actual node data. the real content, the inner truth, the whole point of the thing. π«Ά
π Author π
Generated automatically by Doxygen for Gumbo from the source code. (not a human author, just a robot doing its little thing, and honestly? ate. π€π)
and that's the whole page, bestie! version 0.12.1, dated Fri Sep 19 2025 00:00:00, filed under GumboNode(3) in the Gumbo manual. go forth and parse responsibly. periodt. π
β¨π
π¦ where this page comes from
- fedora 43: gumbo-parser-devel 1:0.12.1-7.fc43 Β· Apache-2.0
- fedora 43: gumbo-parser-devel 1:0.12.1-7.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms