Table of contents
- 1. Summary
- 2. Syntax
- 3. Specification
Summary
Tests whether two nodes are the same, that is they reference the same object.
Warning: This method has been deprecated in DOM level 4 and is no longer implemented in recent browsers, including Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0)
.
Instead of using
use
Instead of using
node1.isSameNode(node2)use
node1 === node2 or node1 == node2Syntax
var isSameNode = node.isSameNode(other);
otherThe node to test against.
Specification
- DOM Level 3 Core: isSameNodeREC
- This has been removed from DOM Core Level 4WD


Mozilla Developer Network