summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-28 18:16:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-28 18:18:20 +0200
commit308cb69329c56c10789b5663ae83419e7f167364 (patch)
tree46a70806bffa224f32cf223702b6204d75ec2c69 /Libraries/LibWeb
parentc84212aaba1a9c99ae30732bdf8eef4a6b525a3b (diff)
downloadserenity-308cb69329c56c10789b5663ae83419e7f167364.zip
LibWeb: Remove a misplaced call to close_a_p_element() in "in body"
This should only be done for the corresponding start tags.
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r--Libraries/LibWeb/Parser/HTMLDocumentParser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
index 5c1fb0447f..9325527fac 100644
--- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
+++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp
@@ -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;