summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_head.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-06-24 21:48:09 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-06-24 21:48:09 +0000
commit2364037c148d7b3bbed7690e37c0b5ae2df064a6 (patch)
tree41c271a4f259cddfa07268dffc71ac442d21404f /src/treebuilder/in_head.c
parentbabbb971172d6cbe71126ca1f0069236ea1bf144 (diff)
downloadlibhubbub-2364037c148d7b3bbed7690e37c0b5ae2df064a6.tar.gz
libhubbub-2364037c148d7b3bbed7690e37c0b5ae2df064a6.tar.bz2
Make everything that is meant to have processing equivalent to "in head" use the same code.
svn path=/trunk/hubbub/; revision=4434
Diffstat (limited to 'src/treebuilder/in_head.c')
-rw-r--r--src/treebuilder/in_head.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/treebuilder/in_head.c b/src/treebuilder/in_head.c
index 96ff87d..4163343 100644
--- a/src/treebuilder/in_head.c
+++ b/src/treebuilder/in_head.c
@@ -117,3 +117,17 @@ bool handle_in_head(hubbub_treebuilder *treebuilder,
return reprocess;
}
+
+
+/**
+ * Process a tag as if in the "in head" state.
+ *
+ * \param treebuilder The treebuilder instance
+ * \param token The token to process
+ * \return True to reprocess the token, false otherwise
+ */
+bool process_in_head(hubbub_treebuilder *treebuilder,
+ const hubbub_token *token)
+{
+ return handle_in_head(treebuilder, token);
+}