summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-11 14:49:47 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-11 14:49:47 +0000
commit43e356377cf27d6596be5ea873e04101e4eeac78 (patch)
tree4dbdd5c711cc7ace4553f35f812751697f732c4b
parent712ebba754bda6a1d405ee06400433b07c4e9b2d (diff)
downloadlibhubbub-43e356377cf27d6596be5ea873e04101e4eeac78.tar.gz
libhubbub-43e356377cf27d6596be5ea873e04101e4eeac78.tar.bz2
I guess it helps if you document the fact that _both_ a tree handler and a document node are needed to make treebuilding work.
svn path=/trunk/hubbub/; revision=6038
-rw-r--r--examples/libxml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/libxml.c b/examples/libxml.c
index 1190479..bb57835 100644
--- a/examples/libxml.c
+++ b/examples/libxml.c
@@ -324,6 +324,10 @@ error_code create_context(const char *charset, context **ctx)
c->namespaces[i] = NULL;
}
+ /* The following are both needed to make hubbub do anything. If it has
+ * no tree handler or document node registered, it won't attempt to
+ * build a tree. */
+
/* Register tree handler with hubbub */
c->tree_handler = tree_handler;
c->tree_handler.ctx = (void *) c;