summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-13 13:46:12 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-13 13:46:12 +0200
commit47df0cbbc82778beaa12f4b5f84f924c32ce2c60 (patch)
tree977a5e99f007ec6dda037aacaf531a39c0db47df /Libraries
parent784ed004e6e450a021994f30077dc46418cebb2d (diff)
downloadserenity-47df0cbbc82778beaa12f4b5f84f924c32ce2c60.zip
LibWeb: Fix broken tokenization of hexadecimal character references
We were interpreting 'A'-'F' as decimal digits which didn't work right.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Parser/HTMLTokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
index fc113b8e44..bcdd5a87e2 100644
--- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
+++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp
@@ -129,7 +129,7 @@
if (current_input_character.has_value() && current_input_character.value() >= 'a' && current_input_character.value() <= 'z')
#define ON_ASCII_DIGIT \
- if (current_input_character.has_value() && isxdigit(current_input_character.value()))
+ if (current_input_character.has_value() && isdigit(current_input_character.value()))
#define ON_ASCII_HEX_DIGIT \
if (current_input_character.has_value() && isxdigit(current_input_character.value()))