From 19190267a604031523355efb28c22954466a3a94 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 4 Jun 2020 16:48:15 +0200 Subject: LibWeb: Fix incorrectly consumed characters after reference tokens The NumericCharacterReferenceEnd tokenizer state should not advance the input stream. --- Libraries/LibWeb/Parser/HTMLTokenizer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Libraries') diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp index 4be19cbc13..1f73adaad9 100644 --- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp +++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp @@ -1415,6 +1415,8 @@ _StartOfFunction: BEGIN_STATE(NumericCharacterReferenceEnd) { + DONT_CONSUME_NEXT_INPUT_CHARACTER; + if (m_character_reference_code == 0) { TODO(); } -- cgit v1.2.3