Hubbub $Id$
Classes | Macros | Functions
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)   s, SLEN(s)
 
#define S(s)   (uint8_t *) s, SLEN(s)
 

Functions

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

Macro Definition Documentation

◆ S [1/2]

#define S (   s)    s, SLEN(s)

◆ S [2/2]

#define S (   s)    (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