summaryrefslogtreecommitdiff
path: root/include/hubbub/parser.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-03-11 16:54:30 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-03-11 16:54:30 +0000
commit5b37e1f0bfd10da6720a6587e39d3dee45f77e8d (patch)
treeb5a185e4a8cef98c644f47259fb4c0a14c0d52f9 /include/hubbub/parser.h
parentde7e0ac0b651313f9e26a3a4694126c914517f53 (diff)
downloadlibhubbub-5b37e1f0bfd10da6720a6587e39d3dee45f77e8d.tar.gz
libhubbub-5b37e1f0bfd10da6720a6587e39d3dee45f77e8d.tar.bz2
More treebuilder (up to 8.2.4.7)
Loads of issues still outstanding, including a distinct lack of error handling Change tree handler API to allow (de)referencing of nodes rather than explicit destruction. Change create_element handler to take an entire hubbub_tag rather than just the tag name -- the DOM binding can deal with the issue of attaching attributes to the created element node. svn path=/trunk/hubbub/; revision=3932
Diffstat (limited to 'include/hubbub/parser.h')
-rw-r--r--include/hubbub/parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h
index 134f4b7..5565f63 100644
--- a/include/hubbub/parser.h
+++ b/include/hubbub/parser.h
@@ -26,6 +26,7 @@ typedef enum hubbub_parser_opttype {
HUBBUB_PARSER_ERROR_HANDLER,
HUBBUB_PARSER_CONTENT_MODEL,
HUBBUB_PARSER_TREE_HANDLER,
+ HUBBUB_PARSER_DOCUMENT_NODE,
} hubbub_parser_opttype;
/**
@@ -52,6 +53,8 @@ typedef union hubbub_parser_optparams {
} content_model;
hubbub_tree_handler tree_handler;
+
+ void *document_node;
} hubbub_parser_optparams;
/* Create a hubbub parser */