LibWeb: Fix broken tokenization of hexadecimal character references

We were interpreting 'A'-'F' as decimal digits which didn't work right.
This commit is contained in:
Andreas Kling 2020-06-13 13:46:12 +02:00
parent 784ed004e6
commit 47df0cbbc8
Notes: sideshowbarker 2024-07-19 05:40:30 +09:00

View file

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