diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-06-24 21:48:09 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-06-24 21:48:09 +0000 |
commit | 2364037c148d7b3bbed7690e37c0b5ae2df064a6 (patch) | |
tree | 41c271a4f259cddfa07268dffc71ac442d21404f /src/treebuilder/in_head.c | |
parent | babbb971172d6cbe71126ca1f0069236ea1bf144 (diff) | |
download | libhubbub-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.c | 14 |
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); +} |