mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Compare node names case insensitively in Node::is_equal_node()
This commit is contained in:
parent
7ab7be694d
commit
5a578e8f15
Notes:
sideshowbarker
2024-07-19 21:35:59 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5a578e8f152 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/705
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue