diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-11 16:54:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-03-11 16:54:30 +0000 |
commit | 5b37e1f0bfd10da6720a6587e39d3dee45f77e8d (patch) | |
tree | b5a185e4a8cef98c644f47259fb4c0a14c0d52f9 /src/parser.c | |
parent | de7e0ac0b651313f9e26a3a4694126c914517f53 (diff) | |
download | libhubbub-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 'src/parser.c')
-rw-r--r-- | src/parser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index 23702e1..1ae498a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -158,6 +158,13 @@ hubbub_error hubbub_parser_setopt(hubbub_parser *parser, (hubbub_treebuilder_optparams *) params); } break; + case HUBBUB_PARSER_DOCUMENT_NODE: + if (parser->tb != NULL) { + result = hubbub_treebuilder_setopt(parser->tb, + HUBBUB_TREEBUILDER_DOCUMENT_NODE, + (hubbub_treebuilder_optparams *) params); + } + break; default: result = HUBBUB_INVALID; } |