diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-04 16:48:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-04 16:49:21 +0200 |
commit | 19190267a604031523355efb28c22954466a3a94 (patch) | |
tree | 62da738ecb7bb4c0405eeb9e418eaa7c740e9056 /Libraries | |
parent | 959de19418c831e1384f6d65a45971dd1d6a4287 (diff) | |
download | serenity-19190267a604031523355efb28c22954466a3a94.zip |
LibWeb: Fix incorrectly consumed characters after reference tokens
The NumericCharacterReferenceEnd tokenizer state should not advance
the input stream.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/Parser/HTMLTokenizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |