mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibWeb: Implement some missing tokenizer cases for EOF handling
This commit is contained in:
parent
9d8565cf9a
commit
8e6522d034
Notes:
sideshowbarker
2024-07-19 05:22:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8e6522d0347
1 changed files with 8 additions and 4 deletions
|
@ -294,7 +294,9 @@ _StartOfFunction:
|
|||
}
|
||||
ON_EOF
|
||||
{
|
||||
TODO();
|
||||
PARSE_ERROR();
|
||||
m_queued_tokens.enqueue(HTMLToken::make_character('<'));
|
||||
EMIT_EOF;
|
||||
}
|
||||
ANYTHING_ELSE
|
||||
{
|
||||
|
@ -357,8 +359,9 @@ _StartOfFunction:
|
|||
ON_EOF
|
||||
{
|
||||
PARSE_ERROR();
|
||||
// FIXME: Emit a U+003C LESS-THAN SIGN character token, a U+002F SOLIDUS character token and an end-of-file token.
|
||||
continue;
|
||||
m_queued_tokens.enqueue(HTMLToken::make_character('<'));
|
||||
m_queued_tokens.enqueue(HTMLToken::make_character('/'));
|
||||
EMIT_EOF;
|
||||
}
|
||||
ANYTHING_ELSE
|
||||
{
|
||||
|
@ -1063,7 +1066,8 @@ _StartOfFunction:
|
|||
}
|
||||
ON_EOF
|
||||
{
|
||||
TODO();
|
||||
PARSE_ERROR();
|
||||
EMIT_EOF;
|
||||
}
|
||||
ANYTHING_ELSE
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue