From 5a578e8f152c1183b96e3f5c9d9b389f4f22235a Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 18 Jul 2024 14:56:29 +0100 Subject: [PATCH] LibWeb: Compare node names case insensitively in `Node::is_equal_node()` --- Userland/Libraries/LibWeb/DOM/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index 87a272f4427..764432dd1d1 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -1547,7 +1547,7 @@ bool Node::is_equal_node(Node const* other_node) const // A node A equals a node B if all of the following conditions are true: // A and B implement the same interfaces. - if (node_name() != other_node->node_name()) + if (!node_name().equals_ignoring_ascii_case(other_node->node_name())) return false; // The following are equal, switching on the interface A implements: