mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 04:32:51 +00:00
LibWeb: Tokenizing a semicolon-less HTML entity is (just a) parse error
No need to blow chunks over this.
This commit is contained in:
parent
b9d5d45eff
commit
851a0f983a
Notes:
sideshowbarker
2024-07-19 05:57:43 +09:00
Author: https://github.com/awesomekling
Commit: 851a0f983a
1 changed files with 6 additions and 1 deletions
|
@ -34,6 +34,11 @@
|
|||
|
||||
//#define TOKENIZER_TRACE
|
||||
|
||||
#define PARSE_ERROR() \
|
||||
do { \
|
||||
dbg() << "Parse error (tokenization)" << __PRETTY_FUNCTION__ << " @ " << __LINE__; \
|
||||
} while (0)
|
||||
|
||||
#define CONSUME_NEXT_INPUT_CHARACTER \
|
||||
current_input_character = next_codepoint();
|
||||
|
||||
|
@ -1197,7 +1202,7 @@ _StartOfFunction:
|
|||
}
|
||||
|
||||
if (!match.value().entity.ends_with(';')) {
|
||||
TODO();
|
||||
PARSE_ERROR();
|
||||
}
|
||||
|
||||
m_temporary_buffer.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue