mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 19:22:53 +00:00
LibWeb: Handle "dd" and "dt" end tags during "in body"
This commit is contained in:
parent
1a15ca2de4
commit
d058addd74
Notes:
sideshowbarker
2024-07-19 05:55:48 +09:00
Author: https://github.com/awesomekling
Commit: d058addd74
1 changed files with 10 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue