summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Parser
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-10 17:17:12 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-10 21:27:13 +0100
commit197759e30fe7092e7b6bdf98886dc82015e6f3d6 (patch)
tree8f92f020da5b2dff22e2eb82c2da7c354277418e /Userland/Libraries/LibWeb/HTML/Parser
parent2e4e0195dee6b1f6c4e3155ca2b8a44d036d4402 (diff)
downloadserenity-197759e30fe7092e7b6bdf98886dc82015e6f3d6.zip
LibWeb: Fix off-by-one error when highlighting unquoted HTML attributes
This fixes #11166
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
index 737fec0507..2a30d5acec 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
@@ -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('&')