Skip to content

Commit 4b135d9

Browse files
committed
Merge pull request #384 from seaburg/master
Fix skipping parsing character
2 parents aa1fc19 + 7d28b21 commit 4b135d9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lexer.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,14 +2748,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
27482748
continue; /* no text so keep going */
27492749
}
27502750

2751-
/* fix for bug 762102 */
2752-
if (c == '&')
2753-
{
2754-
TY_(UngetChar)(c, doc->docIn);
2755-
--(lexer->lexsize);
2756-
}
2757-
27582751
/* otherwise treat as CDATA */
2752+
TY_(UngetChar)(c, doc->docIn);
2753+
lexer->lexsize -= 1;
27592754
lexer->state = LEX_CONTENT;
27602755
lexer->waswhite = no;
27612756
continue;

0 commit comments

Comments
 (0)