From 5b37e1f0bfd10da6720a6587e39d3dee45f77e8d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 11 Mar 2008 16:54:30 +0000 Subject: 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 --- include/hubbub/tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/hubbub/tree.h') diff --git a/include/hubbub/tree.h b/include/hubbub/tree.h index a883f1a..5b82592 100644 --- a/include/hubbub/tree.h +++ b/include/hubbub/tree.h @@ -18,7 +18,8 @@ typedef struct hubbub_tree_handler { hubbub_tree_create_doctype create_doctype; hubbub_tree_create_element create_element; hubbub_tree_create_text create_text; - hubbub_tree_free_node free_node; + hubbub_tree_ref_node ref_node; + hubbub_tree_unref_node unref_node; hubbub_tree_append_child append_child; hubbub_tree_insert_before insert_before; hubbub_tree_remove_child remove_child; -- cgit v1.2.3