From bf723aad980be5300d2990583ead322aa3c126ff Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 6 Mar 2025 17:29:35 -0500 Subject: [PATCH] LibWeb: Correctly set mutation record attribute namespace values Here, we were setting the attribute_name string to the namespace string. --- Libraries/LibWeb/DOM/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/DOM/Node.cpp b/Libraries/LibWeb/DOM/Node.cpp index 3cd48e5b3a7..f3c655e0eca 100644 --- a/Libraries/LibWeb/DOM/Node.cpp +++ b/Libraries/LibWeb/DOM/Node.cpp @@ -2292,7 +2292,7 @@ void Node::queue_mutation_record(FlyString const& type, Optional cons string_attribute_name = attribute_name->to_string(); Optional string_attribute_namespace; if (attribute_namespace.has_value()) - string_attribute_name = attribute_namespace->to_string(); + string_attribute_namespace = attribute_namespace->to_string(); // 1. Let record be a new MutationRecord object with its type set to type, target set to target, attributeName set to name, attributeNamespace set to namespace, oldValue set to mappedOldValue, // addedNodes set to addedNodes, removedNodes set to removedNodes, previousSibling set to previousSibling, and nextSibling set to nextSibling.