summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorovf <unknown>2021-07-24 23:15:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-27 00:03:43 +0200
commit13c7d553201abbb016ffa290586c34fa2a2ee037 (patch)
tree4bf2037f2d1390243c51fbaf332a26c66a2d8113 /Userland/Libraries/LibWeb
parent0505a815f7e00bc44db64e9609bb6f4532e69f24 (diff)
downloadserenity-13c7d553201abbb016ffa290586c34fa2a2ee037.zip
LibWeb: Fix parsing of character references in attribute values
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
index aa6efbe72e..5fc69491e0 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
@@ -1179,9 +1179,8 @@ _StartOfFunction:
}
ON('&')
{
- m_current_token.last_attribute().value = consume_current_builder();
m_return_state = State::AttributeValueDoubleQuoted;
- SWITCH_TO(CharacterReference);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(CharacterReference);
}
ON(0)
{
@@ -1211,9 +1210,8 @@ _StartOfFunction:
}
ON('&')
{
- m_current_token.last_attribute().value = consume_current_builder();
m_return_state = State::AttributeValueSingleQuoted;
- SWITCH_TO(CharacterReference);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(CharacterReference);
}
ON(0)
{
@@ -1244,9 +1242,8 @@ _StartOfFunction:
}
ON('&')
{
- m_current_token.last_attribute().value = consume_current_builder();
m_return_state = State::AttributeValueUnquoted;
- SWITCH_TO(CharacterReference);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(CharacterReference);
}
ON('>')
{