LibWeb: Handle "dd" and "dt" end tags during "in body"

This commit is contained in:
Andreas Kling 2020-05-30 22:59:15 +02:00
parent 1a15ca2de4
commit d058addd74
Notes: sideshowbarker 2024-07-19 05:55:48 +09:00

View file

@ -1044,7 +1044,16 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
}
if (token.is_end_tag() && token.tag_name().is_one_of("dd", "dt")) {
TODO();
if (!m_stack_of_open_elements.has_in_scope(token.tag_name())) {
PARSE_ERROR();
return;
}
generate_implied_end_tags(token.tag_name());
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());
return;
}
if (token.is_end_tag() && token.tag_name().is_one_of("h1", "h2", "h3", "h4", "h5", "h6")) {