From efd9329b7e3dce8fb3aef979d26a86568f8744be Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Thu, 26 Jun 2008 08:06:25 +0000 Subject: Add the basics of namespace support. svn path=/trunk/hubbub/; revision=4452 --- include/hubbub/types.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/hubbub') diff --git a/include/hubbub/types.h b/include/hubbub/types.h index f427023..e56bae4 100644 --- a/include/hubbub/types.h +++ b/include/hubbub/types.h @@ -93,10 +93,23 @@ typedef struct hubbub_doctype { bool force_quirks; /**< Doctype force-quirks flag */ } 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 { + hubbub_ns ns; /**< Tag namespace */ hubbub_string name; /**< Tag name */ uint32_t n_attributes; /**< Count of attributes */ hubbub_attribute *attributes; /**< Array of attribute data */ -- cgit v1.2.3