mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-10 13:12:56 +00:00
LibWeb: Handle end-of-file token during "in body" insertion mode
This commit is contained in:
parent
5833359065
commit
770372ad02
Notes:
sideshowbarker
2024-07-19 05:57:18 +09:00
Author: https://github.com/awesomekling
Commit: 770372ad02
1 changed files with 11 additions and 1 deletions
|
@ -801,7 +801,17 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
|||
}
|
||||
|
||||
if (token.is_end_of_file()) {
|
||||
TODO();
|
||||
// FIXME: If the stack of template insertion modes is not empty,
|
||||
// then process the token using the rules for the "in template" insertion mode.
|
||||
|
||||
// FIXME: If there is a node in the stack of open elements that is not either
|
||||
// a dd element, a dt element, an li element, an optgroup element, an option element,
|
||||
// a p element, an rb element, an rp element, an rt element, an rtc element,
|
||||
// a tbody element, a td element, a tfoot element, a th element, a thead element,
|
||||
// a tr element, the body element, or the html element, then this is a parse error.
|
||||
|
||||
stop_parsing();
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_end_tag() && token.tag_name() == "body") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue