mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Parse end tags for "applet", "marquee", and "object" during "in body"
This commit is contained in:
committed by
Andreas Kling
parent
5046f15824
commit
9fca4b56d3
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user