Don't scan opening tag names during error recovery

This commit is contained in:
Max Brunsfeld 2019-03-03 18:21:25 -08:00
parent a923cb3fd7
commit 4c7d5fe26c
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ struct Scanner {
break;
default:
if (valid_symbols[START_TAG_NAME] || valid_symbols[END_TAG_NAME]) {
if ((valid_symbols[START_TAG_NAME] || valid_symbols[END_TAG_NAME]) && !valid_symbols[RAW_TEXT]) {
return valid_symbols[START_TAG_NAME]
? scan_start_tag_name(lexer)
: scan_end_tag_name(lexer);