Fix skipping parsing character
This commit is contained in:
parent
9a9acf29cb
commit
7d28b21e60
|
@ -2746,14 +2746,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
|
||||||
continue; /* no text so keep going */
|
continue; /* no text so keep going */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fix for bug 762102 */
|
|
||||||
if (c == '&')
|
|
||||||
{
|
|
||||||
TY_(UngetChar)(c, doc->docIn);
|
|
||||||
--(lexer->lexsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* otherwise treat as CDATA */
|
/* otherwise treat as CDATA */
|
||||||
|
TY_(UngetChar)(c, doc->docIn);
|
||||||
|
lexer->lexsize -= 1;
|
||||||
lexer->state = LEX_CONTENT;
|
lexer->state = LEX_CONTENT;
|
||||||
lexer->waswhite = no;
|
lexer->waswhite = no;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue