Cogs.Core
Public Attributes | List of all members
GumboElement Struct Reference

#include <gumbo.h>

Public Attributes

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.

Definition at line 474 of file gumbo.h.

Member Data Documentation

◆ attributes

GumboVector GumboElement::attributes

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

Definition at line 512 of file gumbo.h.

◆ children

GumboVector GumboElement::children

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

Definition at line 479 of file gumbo.h.

◆ end_pos

GumboSourcePosition GumboElement::end_pos

The source position for the start of the end tag.

Definition at line 506 of file gumbo.h.

◆ original_end_tag

GumboStringPiece GumboElement::original_end_tag

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.

Definition at line 500 of file gumbo.h.

◆ original_tag

GumboStringPiece GumboElement::original_tag

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.

Definition at line 493 of file gumbo.h.

◆ start_pos

GumboSourcePosition GumboElement::start_pos

The source position for the start of the start tag.

Definition at line 503 of file gumbo.h.

◆ tag

GumboTag GumboElement::tag

The GumboTag enum for this element.

Definition at line 482 of file gumbo.h.

◆ tag_namespace

GumboNamespaceEnum GumboElement::tag_namespace

The GumboNamespaceEnum for this element.

Definition at line 485 of file gumbo.h.


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