diff options
author | ovf <unknown> | 2021-07-28 00:37:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-28 18:32:22 +0200 |
commit | 898b8ffcb69208ef5d4c70270fdf1d78bf669a2d (patch) | |
tree | 0c6a65f81b29f1879b3b626ab1cf8ffa674ea706 /Userland/Libraries/LibWeb | |
parent | 5fe3cc3b855cb641741ab93eab626b71e231bf37 (diff) | |
download | serenity-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.cpp | 10 |
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 { |