Hubbub
Functions
in_row.c File Reference
#include <assert.h>
#include <string.h>
#include "treebuilder/modes.h"
#include "treebuilder/internal.h"
#include "treebuilder/treebuilder.h"
#include "utils/utils.h"

Go to the source code of this file.

Functions

static void table_clear_stack (hubbub_treebuilder *treebuilder)
 Clear the stack back to a table row context. More...
 
static hubbub_error act_as_if_end_tag_tr (hubbub_treebuilder *treebuilder)
 Handle and anything that acts "as if" was emitted. More...
 
hubbub_error handle_in_row (hubbub_treebuilder *treebuilder, const hubbub_token *token)
 Handle tokens in "in row" insertion mode. More...
 

Function Documentation

static hubbub_error act_as_if_end_tag_tr ( hubbub_treebuilder treebuilder)
static

Handle and anything that acts "as if" was emitted.

Parameters
treebuilderThe treebuilder instance
Returns
True to reprocess the token, false otherwise
Todo:
fragment case

Definition at line 50 of file in_row.c.

References hubbub_treebuilder::context, hubbub_tree_handler::ctx, element_stack_pop(), HUBBUB_REPROCESS, IN_TABLE_BODY, hubbub_treebuilder_context::mode, table_clear_stack(), hubbub_treebuilder::tree_handler, and hubbub_tree_handler::unref_node.

Referenced by handle_in_row().

hubbub_error handle_in_row ( hubbub_treebuilder treebuilder,
const hubbub_token token 
)
static void table_clear_stack ( hubbub_treebuilder treebuilder)
static

Clear the stack back to a table row context.

Parameters
treebuilderThe treebuilder instance

Definition at line 22 of file in_row.c.

References hubbub_tree_handler::ctx, current_node(), element_stack_pop(), HTML, TR, hubbub_treebuilder::tree_handler, type, and hubbub_tree_handler::unref_node.

Referenced by act_as_if_end_tag_tr(), and handle_in_row().