mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
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:
parent
20df82c983
commit
3f2158bbfe
Notes:
sideshowbarker
2024-07-19 06:11:35 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/3f2158bbfea Pull-request: https://github.com/SerenityOS/serenity/pull/2355
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue