LibWeb: Fix incorrectly consumed characters after reference tokens

The NumericCharacterReferenceEnd tokenizer state should not advance
the input stream.
This commit is contained in:
Andreas Kling 2020-06-04 16:48:15 +02:00
parent 959de19418
commit 19190267a6

View file

@ -1415,6 +1415,8 @@ _StartOfFunction:
BEGIN_STATE(NumericCharacterReferenceEnd)
{
DONT_CONSUME_NEXT_INPUT_CHARACTER;
if (m_character_reference_code == 0) {
TODO();
}