Don't scan opening tag names during error recovery
This commit is contained in:
parent
a923cb3fd7
commit
4c7d5fe26c
|
@ -265,7 +265,7 @@ struct Scanner {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]
|
return valid_symbols[START_TAG_NAME]
|
||||||
? scan_start_tag_name(lexer)
|
? scan_start_tag_name(lexer)
|
||||||
: scan_end_tag_name(lexer);
|
: scan_end_tag_name(lexer);
|
||||||
|
|
Loading…
Reference in New Issue