mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 06:47:34 +00:00
LibWeb: Fix tokenizer swallowing an extra token after a named entity
This commit is contained in:
parent
767daf1c12
commit
ab4c03ce2d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
auto match = HTML::codepoints_from_entity(m_decoded_input.substring_view(byte_offset, m_decoded_input.length() - byte_offset - 1));
|
||||||
|
|
||||||
if (match.has_value()) {
|
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_prev_utf8_iterator = m_utf8_iterator;
|
||||||
++m_utf8_iterator;
|
++m_utf8_iterator;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue