GumboElement(3)
π GumboElement π (NAME)
okay bestie, welcome to GumboElement β it's a manual page from the Gumbo docs (section 3, the library-call girlies π). This is the struct, the main character, the blueprint. Let's get into it β¨
β¨ SYNOPSIS β¨
to even look at this thing you gotta pull it in like:
#include <gumbo.h>
πΈ Data Fields πΈ
here's the whole squad, no gatekeeping:
GumboVector childrenGumboTag tagGumboNamespaceEnum tag_namespaceGumboStringPiece original_tagGumboStringPiece original_end_tagGumboSourcePosition start_posGumboSourcePosition end_posGumboVector attributes
π¦ Detailed Description π¦
so <pink>GumboElement</pink> is literally the struct that represents all HTML elements π it's giving "everything you ever wanted to know about a tag." It carries the info about the tag, the attributes, and the child nodes. that's the whole vibe, periodt.
π Field Documentation π
GumboVector GumboElement::children
an array of GumboNodes holding all the children of this element π«Ά and yes, the pointers are owned β you're responsible for them, bestie, no abandoning them.
GumboTag GumboElement::tag
the GumboTag enum for this element. that's it, that's the field β¨
GumboNamespaceEnum GumboElement::tag_namespace
the GumboNamespaceEnum for this element. namespace check, vibe check, same thing π
GumboStringPiece GumboElement::original_tag
a GumboStringPiece pointing at the original tag text for this element β and it points directly into the source buffer, no copies, we're efficient here. but heads up: if the tag was inserted algorithmically (for example, <head> or insertion), this will be a zero-length string. don't come for me, that's just how it is π
GumboStringPiece GumboElement::original_end_tag
a GumboStringPiece pointing at the original end tag text for this element. same deal: if the end tag got inserted algorithmically (for example, closing a self-closing tag), it's a zero-length string π
GumboSourcePosition GumboElement::start_pos
the source position for the start of the start tag. yes, start of the start. iconic, honestly.
GumboSourcePosition GumboElement::end_pos
the source position for the start of the end tag. not the end of the end tag β the start of it. noted π
GumboVector GumboElement::attributes
an array of GumboAttributes with the attributes for this tag, in the exact order that they were parsed (we respect the timeline β³). and yep β the pointers are owned here too. take care of your babies.
π Author π
Generated automatically by Doxygen for Gumbo from the source code. (not me, I'm just the messenger π)
okay that's the whole page, no skips, no skimming, we read every line like good students π§
and that's a wrap, bestie π this was GumboElement(3), from Version 0.12.1, dated Fri Sep 19 2025 00:00:00. slay, go build something iconic with it πβ
π¦ 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