mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-24 20:18:26 +00:00
LibWeb: Fix parsing of character references in attribute values
This commit is contained in:
@@ -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