Node.isSameNode()
This predicate tests whether two nodes are the same identical node:
N.isSameNode ( otherNode )
N
otherNode
If otherNode is the same node as N, this method returns true; otherwise it returns false.