diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index 097c94547ad..87a272f4427 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -1573,8 +1573,8 @@ bool Node::is_equal_node(Node const* other_node) const return false; // If A is an element, each attribute in its attribute list has an attribute that equals an attribute in B’s attribute list. bool has_same_attributes = true; - this_element.for_each_attribute([&](auto& name, auto& value) { - if (other_element.get_attribute(name) != value) + this_element.for_each_attribute([&](auto const& attribute) { + if (other_element.get_attribute_ns(attribute.namespace_uri(), attribute.local_name()) != attribute.value()) has_same_attributes = false; }); if (!has_same_attributes)