mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Fix off-by-one error when highlighting unquoted HTML attributes
This fixes #11166
This commit is contained in:
parent
2e4e0195de
commit
197759e30f
Notes:
sideshowbarker
2024-07-17 23:00:24 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/197759e30fe Pull-request: https://github.com/SerenityOS/serenity/pull/11202 Issue: https://github.com/SerenityOS/serenity/issues/11166
1 changed files with 1 additions and 1 deletions
|
@ -1237,7 +1237,7 @@ _StartOfFunction:
|
|||
ON_WHITESPACE
|
||||
{
|
||||
m_current_token.last_attribute().value = consume_current_builder();
|
||||
m_current_token.last_attribute().value_end_position = nth_last_position(2);
|
||||
m_current_token.last_attribute().value_end_position = nth_last_position(1);
|
||||
SWITCH_TO(BeforeAttributeName);
|
||||
}
|
||||
ON('&')
|
||||
|
|
Loading…
Reference in a new issue