From 8d446d2a9e7732f7badfa00e98fc130d5faee5dc Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 1 May 2023 15:26:37 +0330 Subject: LibWeb: Make XMLDocumentBuilder create elements with the HTML namespace Otherwise we'll end up with all-generic elements and not run any special HTML sauce logic, leading to very plain pages. --- Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp index 4d5d562010..3bdaefa156 100644 --- a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp +++ b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp @@ -64,7 +64,7 @@ void XMLDocumentBuilder::element_start(const XML::Name& name, HashMapnode_name() == name); + VERIFY(m_current_node->node_name().equals_ignoring_ascii_case(name)); // When an XML parser with XML scripting support enabled creates a script element, [...] // When the element's end tag is subsequently parsed, if (m_scripting_support == XMLScriptingSupport::Enabled && HTML::TagNames::script == name) { -- cgit v1.2.3