1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Implement Node.isSameNode(Node? otherNode)

This commit is contained in:
Andreas Kling 2021-09-13 12:49:23 +02:00
parent 25f43ea0a1
commit a0528598b5
3 changed files with 9 additions and 0 deletions

View file

@ -768,4 +768,10 @@ void Node::string_replace_all(String const& string)
replace_all(node);
}
// https://dom.spec.whatwg.org/#dom-node-issamenode
bool Node::is_same_node(Node const* other_node) const
{
return this == other_node;
}
}