mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibWeb: Implement some missing tokenizer cases for EOF handling
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user