mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Fix parsing of character references in attribute values
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 17:22:45 +09:00
Author: https://github.com/lo-v-ol 🔰 Commit: https://github.com/SerenityOS/serenity/commit/13c7d553201 Pull-request: https://github.com/SerenityOS/serenity/pull/9001
@@ -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('>')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user