1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 01:54:57 +00:00

LibWeb: Fix parsing of character references in attribute values

This commit is contained in:
ovf 2021-07-24 23:15:47 +01:00 committed by Andreas Kling
parent 0505a815f7
commit 13c7d55320
2 changed files with 23 additions and 13 deletions

View file

@ -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('>')
{