From 8c55e32256f4081d097cd7114fcf5e307a8a9288 Mon Sep 17 00:00:00 2001 From: Rupinder Singh Khokhar Date: Tue, 17 Jun 2014 00:54:12 +0530 Subject: added RAWTEXT contentModel. Also removed an if(c='-') condition because I felt it was extranious, with no clear logic, not according to the specs. Also fixed a sever bug in handling the tagname state. In all 3 more test files give a PASS --- src/tokeniser/tokeniser.c | 188 +++++++++++++++++++++++----------------------- 1 file changed, 93 insertions(+), 95 deletions(-) (limited to 'src') diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index 64eaf30..7a54df9 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -693,32 +693,12 @@ hubbub_error hubbub_tokeniser_handle_data(hubbub_tokeniser *tokeniser) /* Don't eat the '&'; it'll be handled by entity * consumption */ break; - } else if (c == '-' && - tokeniser->escape_flag == false && - (tokeniser->content_model == - HUBBUB_CONTENT_MODEL_RCDATA || - tokeniser->content_model == - HUBBUB_CONTENT_MODEL_CDATA) && - tokeniser->context.pending >= 3) { - size_t ignore; - error = parserutils_inputstream_peek( - tokeniser->input, - tokeniser->context.pending - 3, - &cptr, - &ignore); - - assert(error == PARSERUTILS_OK); - - if (strncmp((char *)cptr, - "