summaryrefslogtreecommitdiff
path: root/include/hubbub/types.h
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-06-26 09:18:52 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-06-26 09:18:52 +0000
commit968646860abb10e7db6dc810fc13cb9d41ba3237 (patch)
tree7440d40da6c4dbe2eba7fba2e63cc36fcaa0b182 /include/hubbub/types.h
parentefd9329b7e3dce8fb3aef979d26a86568f8744be (diff)
downloadlibhubbub-968646860abb10e7db6dc810fc13cb9d41ba3237.tar.gz
libhubbub-968646860abb10e7db6dc810fc13cb9d41ba3237.tar.bz2
Add namespaces to attributes, too.
svn path=/trunk/hubbub/; revision=4453
Diffstat (limited to 'include/hubbub/types.h')
-rw-r--r--include/hubbub/types.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/hubbub/types.h b/include/hubbub/types.h
index e56bae4..1f7b5ba 100644
--- a/include/hubbub/types.h
+++ b/include/hubbub/types.h
@@ -54,6 +54,18 @@ typedef enum hubbub_token_type {
} hubbub_token_type;
/**
+ * Possible namespaces
+ */
+typedef enum hubbub_ns {
+ HUBBUB_NS_HTML,
+ HUBBUB_NS_MATHML,
+ HUBBUB_NS_SVG,
+ HUBBUB_NS_XLINK,
+ HUBBUB_NS_XML,
+ HUBBUB_NS_XMLNS
+} hubbub_ns;
+
+/**
* Tokeniser string type
*/
typedef struct hubbub_string {
@@ -74,6 +86,7 @@ typedef struct hubbub_string {
* Tag attribute data
*/
typedef struct hubbub_attribute {
+ hubbub_ns ns; /**< Attribute namespace */
hubbub_string name; /**< Attribute name */
hubbub_string value; /**< Attribute value */
} hubbub_attribute;
@@ -94,18 +107,6 @@ typedef struct hubbub_doctype {
} hubbub_doctype;
/**
- * Possible namespaces
- */
-typedef enum hubbub_ns {
- HUBBUB_NS_HTML,
- HUBBUB_NS_MATHML,
- HUBBUB_NS_SVG,
- HUBBUB_NS_XLINK,
- HUBBUB_NS_XML,
- HUBBUB_NS_XMLNS
-} hubbub_ns;
-
-/**
* Data for a tag
*/
typedef struct hubbub_tag {