From 7d28b21e60c3f5b4194e68d64d31cae6788bfcfc Mon Sep 17 00:00:00 2001 From: Evgeniy Yurtaev Date: Fri, 18 Mar 2016 00:25:24 +0400 Subject: [PATCH] Fix skipping parsing character --- src/lexer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lexer.c b/src/lexer.c index 5da6074..c1d32de 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -2746,14 +2746,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode ) continue; /* no text so keep going */ } - /* fix for bug 762102 */ - if (c == '&') - { - TY_(UngetChar)(c, doc->docIn); - --(lexer->lexsize); - } - /* otherwise treat as CDATA */ + TY_(UngetChar)(c, doc->docIn); + lexer->lexsize -= 1; lexer->state = LEX_CONTENT; lexer->waswhite = no; continue;