summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorovf <unknown>2021-07-28 00:37:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-07-28 18:32:22 +0200
commit898b8ffcb69208ef5d4c70270fdf1d78bf669a2d (patch)
tree0c6a65f81b29f1879b3b626ab1cf8ffa674ea706 /Userland/Libraries/LibWeb
parent5fe3cc3b855cb641741ab93eab626b71e231bf37 (diff)
downloadserenity-898b8ffcb69208ef5d4c70270fdf1d78bf669a2d.zip
LibWeb: Avoid assertion failure on parsing numeric character references
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
index 5fc69491e0..7e57c30c0a 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
@@ -1554,7 +1554,7 @@ _StartOfFunction:
ON('#')
{
m_temporary_buffer.append(current_input_character.value());
- SWITCH_TO(NumericCharacterReference);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(NumericCharacterReference);
}
ANYTHING_ELSE
{
@@ -1630,12 +1630,12 @@ _StartOfFunction:
ON('X')
{
m_temporary_buffer.append(current_input_character.value());
- SWITCH_TO(HexadecimalCharacterReferenceStart);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(HexadecimalCharacterReferenceStart);
}
ON('x')
{
m_temporary_buffer.append(current_input_character.value());
- SWITCH_TO(HexadecimalCharacterReferenceStart);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(HexadecimalCharacterReferenceStart);
}
ANYTHING_ELSE
{
@@ -1696,7 +1696,7 @@ _StartOfFunction:
}
ON(';')
{
- SWITCH_TO(NumericCharacterReferenceEnd);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(NumericCharacterReferenceEnd);
}
ANYTHING_ELSE
{
@@ -1716,7 +1716,7 @@ _StartOfFunction:
}
ON(';')
{
- SWITCH_TO(NumericCharacterReferenceEnd);
+ SWITCH_TO_WITH_UNCLEAN_BUILDER(NumericCharacterReferenceEnd);
}
ANYTHING_ELSE
{