summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-11 16:22:32 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-11 16:22:32 +0000
commita5e71b80c224cbc289c02b714cf8afeed3ae17a2 (patch)
tree76b343806219d3d115fd30238c043f60e210dcc1 /render/html.h
parent408ca416e82b6497f5d78e48f437fc72240d92f5 (diff)
downloadnetsurf-a5e71b80c224cbc289c02b714cf8afeed3ae17a2.tar.gz
netsurf-a5e71b80c224cbc289c02b714cf8afeed3ae17a2.tar.bz2
Partially revert r5024, except make namespaces parser-instance-specific.
svn path=/trunk/netsurf/; revision=5028
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/render/html.h b/render/html.h
index 14afa10b7..d7347f427 100644
--- a/render/html.h
+++ b/render/html.h
@@ -43,6 +43,9 @@ struct imagemap;
struct object_params;
struct plotters;
+/* Number of namespaces we support */
+#define NUM_NAMESPACES 7
+
/* entries in stylesheet_content */
#define STYLESHEET_BASE 0 /* base style sheet */
#define STYLESHEET_ADBLOCK 1 /* adblocking stylesheet */
@@ -124,6 +127,9 @@ struct content_html_data {
hubbub_parser *parser; /**< HTML parser context. */
hubbub_tree_handler tree_handler;
xmlDoc *document;
+
+ bool has_ns;
+ xmlNs *ns[NUM_NAMESPACES];
#endif
/** HTML parser encoding handler. */