From f4778d1ba098c19d3aa845b2f7ff7f2954d5a5a5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 30 May 2020 18:19:15 +0200 Subject: [PATCH] LibWeb: Add missing special tag case in the "in body" insertion mode --- Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index 2c6a316f3b6..24b7fdc2802 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -1228,7 +1228,10 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token) m_stack_of_open_elements.pop(); break; } - // FIXME: Handle special elements! + if (is_special_tag(node->tag_name())) { + PARSE_ERROR(); + return; + } } return; }