LibWeb: HtmlTokenizer.cpp: fix ON_WHITESPACE macro

The "audible bell" character ('\a' U+0007) was treated as whitespace
while the "line feed" character ('\n' U+000a) was not.

'\a' is no longer considered whitespace.
'\n' is now considered whitespace.
This commit is contained in:
Emanuele Torre 2020-05-24 03:52:02 +02:00 committed by Andreas Kling
parent 20df82c983
commit 3f2158bbfe
Notes: sideshowbarker 2024-07-19 06:11:35 +09:00

View File

@ -69,7 +69,7 @@
if (current_input_character.has_value() && current_input_character.value() >= 'A' && current_input_character.value() <= 'Z')
#define ON_WHITESPACE \
if (current_input_character.has_value() && (current_input_character.value() == '\t' || current_input_character.value() == '\a' || current_input_character.value() == '\f' || current_input_character.value() == ' '))
if (current_input_character.has_value() && (current_input_character.value() == '\t' || current_input_character.value() == '\n' || current_input_character.value() == '\f' || current_input_character.value() == ' '))
#define ANYTHING_ELSE if (1)