diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-07 18:15:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-07 19:09:03 +0200 |
commit | ab4c03ce2deeb84a068692aaac82ab87fa50f3da (patch) | |
tree | 5ccada0a4b87dd756d7d15c101f2cf65364d9021 /Libraries/LibWeb | |
parent | 767daf1c1284cc4acd9c0ad8cf657a5ff7897694 (diff) | |
download | serenity-ab4c03ce2deeb84a068692aaac82ab87fa50f3da.zip |
LibWeb: Fix tokenizer swallowing an extra token after a named entity
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/Parser/HTMLTokenizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp index dbbf83b802..fc113b8e44 100644 --- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp +++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp @@ -1302,7 +1302,7 @@ _StartOfFunction: auto match = HTML::codepoints_from_entity(m_decoded_input.substring_view(byte_offset, m_decoded_input.length() - byte_offset - 1)); if (match.has_value()) { - for (size_t i = 0; i < match.value().entity.length(); ++i) { + for (size_t i = 0; i < match.value().entity.length() - 1; ++i) { m_prev_utf8_iterator = m_utf8_iterator; ++m_utf8_iterator; } |