From a3bf3a5d681e811bd6531e664a10b0425e7b437a Mon Sep 17 00:00:00 2001 From: Kyle McLean Date: Wed, 3 Jun 2020 23:04:03 -0600 Subject: [PATCH] LibWeb: Handle "xmp" start tag during "in body" --- Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index ab281fab7b..aeb181877e 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -1284,7 +1284,13 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token) } if (token.is_start_tag() && token.tag_name() == "xmp") { - TODO(); + if (m_stack_of_open_elements.has_in_button_scope("p")) { + close_a_p_element(); + } + reconstruct_the_active_formatting_elements(); + m_frameset_ok = false; + parse_generic_raw_text_element(token); + return; } if (token.is_start_tag() && token.tag_name() == "iframe") {