mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-19 14:14:41 +00:00
LibWeb: Fix broken parsing of </form> during "in body" insertion
This commit is contained in:
@@ -1076,7 +1076,7 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
||||
if (!m_stack_of_open_elements.contains(HTML::TagNames::template_)) {
|
||||
auto node = m_form_element;
|
||||
m_form_element = nullptr;
|
||||
if (!node || m_stack_of_open_elements.has_in_scope(*node)) {
|
||||
if (!node || !m_stack_of_open_elements.has_in_scope(*node)) {
|
||||
PARSE_ERROR();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user