summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_body.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-09 16:15:49 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-09 16:15:49 +0000
commitfeb9c2adced5f29a4d4ef0782b2bc880a212dc66 (patch)
treef1444d58a405e8fc551faba606b75e3fb34e02e1 /src/treebuilder/in_body.c
parentc32c49be6738551acdd5bbd94360e9973c921190 (diff)
downloadlibhubbub-feb9c2adced5f29a4d4ef0782b2bc880a212dc66.tar.gz
libhubbub-feb9c2adced5f29a4d4ef0782b2bc880a212dc66.tar.bz2
Exorcise process_tag_in_body(), and just use handle_in_body() instead. This makes all the tests "pass".
svn path=/trunk/hubbub/; revision=4545
Diffstat (limited to 'src/treebuilder/in_body.c')
-rw-r--r--src/treebuilder/in_body.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/treebuilder/in_body.c b/src/treebuilder/in_body.c
index fa015d2..9d91aaf 100644
--- a/src/treebuilder/in_body.c
+++ b/src/treebuilder/in_body.c
@@ -203,45 +203,6 @@ void process_character(hubbub_treebuilder *treebuilder,
}
/**
- * Process a tag as if in "in body" mode
- *
- * \param treebuilder The treebuilder instance
- * \param token The token to process
- * \return True to reprocess the token
- */
-bool process_tag_in_body(hubbub_treebuilder *treebuilder,
- const hubbub_token *token)
-{
- bool reprocess = false;
-
- if (treebuilder->context.strip_leading_lr &&
- token->type != HUBBUB_TOKEN_CHARACTER) {
- /* Reset the LR stripping flag */
- treebuilder->context.strip_leading_lr = false;
- }
-
- switch (token->type)
- {
- case HUBBUB_TOKEN_CHARACTER:
- process_character(treebuilder, token);
- break;
- case HUBBUB_TOKEN_START_TAG:
- reprocess = process_start_tag(treebuilder, token);
- break;
- case HUBBUB_TOKEN_END_TAG:
- reprocess = process_end_tag(treebuilder, token);
- break;
- case HUBBUB_TOKEN_COMMENT:
- case HUBBUB_TOKEN_DOCTYPE:
- case HUBBUB_TOKEN_EOF:
- assert(0);
- break;
- }
-
- return reprocess;
-}
-
-/**
* Process a start tag
*
* \param treebuilder The treebuilder instance