summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_body.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-11 18:34:36 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-11 18:34:36 +0000
commit421e7d357831d852bb5ce50bd1729cad12b13dbf (patch)
treeffe6e32797d170c5e3627c6227e764a52b96d12a /src/treebuilder/in_body.c
parent76eeba6e538eb6ca44910bdfb5c1900cfb78b076 (diff)
downloadlibhubbub-421e7d357831d852bb5ce50bd1729cad12b13dbf.tar.gz
libhubbub-421e7d357831d852bb5ce50bd1729cad12b13dbf.tar.bz2
Make at least a good start on SVG support (commented-out in the spec). Move foreign attribute name processing to in_foreign_content.c.
svn path=/trunk/hubbub/; revision=4614
Diffstat (limited to 'src/treebuilder/in_body.c')
-rw-r--r--src/treebuilder/in_body.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/treebuilder/in_body.c b/src/treebuilder/in_body.c
index c6c907d..f45e2c8 100644
--- a/src/treebuilder/in_body.c
+++ b/src/treebuilder/in_body.c
@@ -315,13 +315,18 @@ bool process_start_tag(hubbub_treebuilder *treebuilder,
}
} else if (type == RP || type == RT) {
/** \todo ruby */
- } else if (type == MATH) {
+ } else if (type == MATH || type == SVG) {
hubbub_tag tag = token->data.tag;
reconstruct_active_formatting_list(treebuilder);
adjust_foreign_attributes(treebuilder, &tag);
- tag.ns = HUBBUB_NS_MATHML;
+ if (type == SVG) {
+ adjust_svg_attributes(treebuilder, &tag);
+ tag.ns = HUBBUB_NS_SVG;
+ } else {
+ tag.ns = HUBBUB_NS_MATHML;
+ }
if (token->data.tag.self_closing) {
insert_element_no_push(treebuilder, &tag);