Don't push back non-A tokens.

This commit is contained in:
Ben Bullock 2015-11-25 18:00:45 +09:00
parent 0ef4493ae8
commit 71d9638448
1 changed files with 4 additions and 1 deletions

View File

@ -1352,7 +1352,10 @@ void TY_(ParseBlock)( TidyDocImpl* doc, Node *element, GetTokenMode mode)
continue;
}
TY_(UngetToken)( doc );
if (nodeIsA(element))
{
TY_(UngetToken)( doc );
}
TY_(ReportError)(doc, element, node, MISSING_ENDTAG_BEFORE);
if (!(mode & Preformatted))