Hubbub
Data Fields
hubbub_treebuilder_context Struct Reference

Context for a tree builder. More...

#include <internal.h>

Data Fields

insertion_mode mode
 The current insertion mode. More...
 
insertion_mode second_mode
 The secondary insertion mode. More...
 
element_contextelement_stack
 Stack of open elements. More...
 
uint32_t stack_alloc
 Number of stack slots allocated. More...
 
uint32_t current_node
 Index of current node in stack. More...
 
formatting_list_entryformatting_list
 List of active formatting elements. More...
 
formatting_list_entryformatting_list_end
 End of active formatting list. More...
 
void * head_element
 Pointer to HEAD element. More...
 
void * form_element
 Pointer to most recently opened FORM element. More...
 
void * document
 Pointer to the document node. More...
 
bool enable_scripting
 Whether scripting is enabled. More...
 
struct {
   insertion_mode   mode
 Insertion mode to return to. More...
 
   element_type   type
 Type of node. More...
 
collect
 Context for character collecting. More...
 
bool strip_leading_lr
 Whether to strip a LR from the start of the next character sequence received. More...
 
bool in_table_foster
 Whether nodes that would be inserted into the current node should be foster parented. More...
 
bool frameset_ok
 Whether to process a frameset. More...
 

Detailed Description

Context for a tree builder.

Definition at line 73 of file internal.h.

Field Documentation

struct { ... } hubbub_treebuilder_context::collect

Context for character collecting.

Referenced by handle_generic_rcdata(), and parse_generic_rcdata().

uint32_t hubbub_treebuilder_context::current_node
void* hubbub_treebuilder_context::document
element_context* hubbub_treebuilder_context::element_stack
bool hubbub_treebuilder_context::enable_scripting

Whether scripting is enabled.

Definition at line 95 of file internal.h.

Referenced by handle_generic_rcdata(), handle_in_head(), hubbub_treebuilder_setopt(), process_end_tag(), and process_start_tag().

void* hubbub_treebuilder_context::form_element

Pointer to most recently opened FORM element.

Definition at line 90 of file internal.h.

Referenced by hubbub_treebuilder_destroy(), insert_element(), process_0form_in_body(), process_form_in_body(), and process_isindex_in_body().

formatting_list_entry* hubbub_treebuilder_context::formatting_list
formatting_list_entry* hubbub_treebuilder_context::formatting_list_end
bool hubbub_treebuilder_context::frameset_ok
void* hubbub_treebuilder_context::head_element

Pointer to HEAD element.

Definition at line 88 of file internal.h.

Referenced by handle_after_head(), handle_before_head(), and hubbub_treebuilder_destroy().

bool hubbub_treebuilder_context::in_table_foster

Whether nodes that would be inserted into the current node should be foster parented.

Definition at line 106 of file internal.h.

Referenced by append_text(), handle_in_table(), insert_element(), process_comment_append(), and reconstruct_active_formatting_list().

insertion_mode hubbub_treebuilder_context::mode
insertion_mode hubbub_treebuilder_context::second_mode

The secondary insertion mode.

Definition at line 76 of file internal.h.

Referenced by foreign_break_out(), process_as_in_secondary(), process_start_tag(), and reset_insertion_mode().

uint32_t hubbub_treebuilder_context::stack_alloc

Number of stack slots allocated.

Definition at line 80 of file internal.h.

Referenced by element_stack_push(), and hubbub_treebuilder_create().

bool hubbub_treebuilder_context::strip_leading_lr

Whether to strip a LR from the start of the next character sequence received.

Definition at line 102 of file internal.h.

Referenced by handle_generic_rcdata(), handle_in_body(), hubbub_treebuilder_create(), process_character(), process_start_tag(), and process_textarea_in_body().

element_type hubbub_treebuilder_context::type

Type of node.

Definition at line 99 of file internal.h.

Referenced by handle_generic_rcdata(), and parse_generic_rcdata().


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