mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Parse end tags for "applet", "marquee", and "object" during "in body"
This commit is contained in:
parent
5046f15824
commit
9fca4b56d3
Notes:
sideshowbarker
2024-07-19 05:51:19 +09:00
Author: https://github.com/kylemclean 🔰 Commit: https://github.com/SerenityOS/serenity/commit/9fca4b56d30 Pull-request: https://github.com/SerenityOS/serenity/pull/2491
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
Reference in a new issue