From 2364037c148d7b3bbed7690e37c0b5ae2df064a6 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Tue, 24 Jun 2008 21:48:09 +0000 Subject: Make everything that is meant to have processing equivalent to "in head" use the same code. svn path=/trunk/hubbub/; revision=4434 --- src/treebuilder/in_head.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/treebuilder/in_head.c') 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); +} -- cgit v1.2.3