Gumbo  0.9.0
A C library for parsing HTML.
Data Fields
GumboElement Struct Reference

#include <gumbo.h>

Data Fields

GumboVector children
GumboTag tag
GumboNamespaceEnum tag_namespace
GumboStringPiece original_tag
GumboStringPiece original_end_tag
GumboSourcePosition start_pos
GumboSourcePosition end_pos
GumboVector attributes

Detailed Description

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


Field Documentation

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

The GumboTag enum for this element.

The GumboNamespaceEnum for this element.

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.

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.

The source position for the start of the start tag.

The source position for the start of the end tag.

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


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator