mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Handle "form" end tag during "in body" if stack of open elements does not contain "template"
This commit is contained in:
parent
4edd0643a6
commit
22521e57fd
1 changed files with 9 additions and 1 deletions
|
@ -1061,7 +1061,15 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
||||||
}
|
}
|
||||||
m_stack_of_open_elements.elements().remove_first_matching([&](auto& entry) { return entry.ptr() == node.ptr(); });
|
m_stack_of_open_elements.elements().remove_first_matching([&](auto& entry) { return entry.ptr() == node.ptr(); });
|
||||||
} else {
|
} else {
|
||||||
TODO();
|
if (!m_stack_of_open_elements.has_in_scope("form")) {
|
||||||
|
PARSE_ERROR();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
generate_implied_end_tags();
|
||||||
|
if (current_node().tag_name() != "form") {
|
||||||
|
PARSE_ERROR();
|
||||||
|
}
|
||||||
|
m_stack_of_open_elements.pop_until_an_element_with_tag_name_has_been_popped("form");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue