Hubbub $Id$
in_foreign_content.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"

Classes

struct  case_changes
 Mapping table for case changes. More...

Macros

#define S(s)
#define S(s)

Functions

void adjust_mathml_attributes (hubbub_treebuilder *treebuilder, hubbub_tag *tag)
 Adjust MathML attributes.
void adjust_svg_attributes (hubbub_treebuilder *treebuilder, hubbub_tag *tag)
 Adjust SVG attributes.
void adjust_svg_tagname (hubbub_treebuilder *treebuilder, hubbub_tag *tag)
 Adjust SVG tagnmes.
void adjust_foreign_attributes (hubbub_treebuilder *treebuilder, hubbub_tag *tag)
 Adjust foreign attributes.
hubbub_error handle_in_foreign_content (hubbub_treebuilder *treebuilder, const hubbub_token *token)
 Handle tokens in "in foreign content" insertion mode.

Macro Definition Documentation

◆ S [1/2]

#define S ( s)
Value:
s, SLEN(s)
#define SLEN(s)
Definition utils.h:21

◆ S [2/2]

#define S ( s)
Value:
(uint8_t *) s, SLEN(s)

Function Documentation

◆ adjust_foreign_attributes()

void adjust_foreign_attributes ( hubbub_treebuilder * treebuilder,
hubbub_tag * tag )

Adjust foreign attributes.

Parameters
treebuilderTreebuilder instance
tagTag to adjust the attributes of

◆ adjust_mathml_attributes()

void adjust_mathml_attributes ( hubbub_treebuilder * treebuilder,
hubbub_tag * tag )

Adjust MathML attributes.

Parameters
treebuilderTreebuilder instance
tagTag to adjust the attributes of

◆ adjust_svg_attributes()

void adjust_svg_attributes ( hubbub_treebuilder * treebuilder,
hubbub_tag * tag )

Adjust SVG attributes.

Parameters
treebuilderTreebuilder instance
tagTag to adjust the attributes of

◆ adjust_svg_tagname()

void adjust_svg_tagname ( hubbub_treebuilder * treebuilder,
hubbub_tag * tag )

Adjust SVG tagnmes.

Parameters
treebuilderTreebuilder instance
tagTag to adjust the name of

◆ handle_in_foreign_content()

hubbub_error handle_in_foreign_content ( hubbub_treebuilder * treebuilder,
const hubbub_token * token )

Handle tokens in "in foreign content" insertion mode.

Parameters
treebuilderThe treebuilder instance
tokenThe token to process
Returns
True to reprocess the token, false otherwise
Todo
parse error
Todo
ack sc flag