LibWeb: Remove a misplaced call to close_a_p_element() in "in body"

This should only be done for the corresponding start tags.
This commit is contained in:
Andreas Kling 2020-05-28 18:16:39 +02:00
parent c84212aaba
commit 308cb69329
Notes: sideshowbarker 2024-07-19 06:01:51 +09:00

View file

@ -711,9 +711,6 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
}
if (token.is_end_tag() && token.tag_name().is_one_of("address", "article", "aside", "blockquote", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "main", "menu", "nav", "ol", "p", "section", "summary", "ul")) {
if (m_stack_of_open_elements.has_in_button_scope("p"))
close_a_p_element();
if (!m_stack_of_open_elements.has_in_scope(token.tag_name())) {
PARSE_ERROR();
return;