mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 04:24:59 +00:00
LibWeb: Parse end tags for "applet", "marquee", and "object" during "in body"
This commit is contained in:
parent
5046f15824
commit
9fca4b56d3
1 changed files with 12 additions and 1 deletions
|
@ -1169,7 +1169,18 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
|||
}
|
||||
|
||||
if (token.is_end_tag() && token.tag_name().is_one_of("applet", "marquee", "object")) {
|
||||
TODO();
|
||||
if (!m_stack_of_open_elements.has_in_scope(token.tag_name())) {
|
||||
PARSE_ERROR();
|
||||
return;
|
||||
}
|
||||
|
||||
generate_implied_end_tags();
|
||||
if (current_node().tag_name() != token.tag_name()) {
|
||||
PARSE_ERROR();
|
||||
}
|
||||
m_stack_of_open_elements.pop_until_an_element_with_tag_name_has_been_popped(token.tag_name());
|
||||
m_list_of_active_formatting_elements.clear_up_to_the_last_marker();
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name() == "table") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue