diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-09 17:29:26 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-09 17:29:26 +0000 |
commit | 444f1b5806972c34a1b7eefc04abb7d841c421fe (patch) | |
tree | c6fc7fd589aca819d773f67df37fe2766f7ba6bd | |
parent | 81bd950d86306334f654b57b8c76f2196f7358c1 (diff) | |
download | libhubbub-444f1b5806972c34a1b7eefc04abb7d841c421fe.tar.gz libhubbub-444f1b5806972c34a1b7eefc04abb7d841c421fe.tar.bz2 |
Add an explict null namespace to hubbub_ns.
svn path=/trunk/hubbub/; revision=4550
-rw-r--r-- | include/hubbub/types.h | 1 | ||||
-rw-r--r-- | src/tokeniser/tokeniser.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/hubbub/types.h b/include/hubbub/types.h index 1f7b5ba..5b49786 100644 --- a/include/hubbub/types.h +++ b/include/hubbub/types.h @@ -57,6 +57,7 @@ typedef enum hubbub_token_type { * Possible namespaces */ typedef enum hubbub_ns { + HUBBUB_NS_NULL, HUBBUB_NS_HTML, HUBBUB_NS_MATHML, HUBBUB_NS_SVG, diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index 8815e60..df8946b 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -1122,6 +1122,7 @@ bool hubbub_tokeniser_handle_before_attribute_name( ctag->attributes = attr; + attr[ctag->n_attributes].ns = HUBBUB_NS_NULL; attr[ctag->n_attributes].name.type = HUBBUB_STRING_OFF; attr[ctag->n_attributes].name.data.off = pos; attr[ctag->n_attributes].name.len = len; @@ -1165,6 +1166,7 @@ bool hubbub_tokeniser_handle_before_attribute_name( ctag->attributes = attr; + attr[ctag->n_attributes].ns = HUBBUB_NS_NULL; attr[ctag->n_attributes].name.type = HUBBUB_STRING_OFF; attr[ctag->n_attributes].name.data.off = pos; attr[ctag->n_attributes].name.len = len; @@ -1293,6 +1295,7 @@ bool hubbub_tokeniser_handle_after_attribute_name( ctag->attributes = attr; + attr[ctag->n_attributes].ns = HUBBUB_NS_NULL; attr[ctag->n_attributes].name.type = HUBBUB_STRING_OFF; attr[ctag->n_attributes].name.data.off = pos; attr[ctag->n_attributes].name.len = len; @@ -1339,6 +1342,7 @@ bool hubbub_tokeniser_handle_after_attribute_name( ctag->attributes = attr; + attr[ctag->n_attributes].ns = HUBBUB_NS_NULL; attr[ctag->n_attributes].name.type = HUBBUB_STRING_OFF; attr[ctag->n_attributes].name.data.off = pos; attr[ctag->n_attributes].name.len = len; |