--- title: Node.isSameNode() slug: Web/API/Node/isSameNode translation_of: Web/API/Node/isSameNode ---
Node.isSameNode()
comprueba si dos nodos son iguales, es decir si hacen referencia al mismo objecto.
Warning: This method is no longer implemented in recent browsers.
// Instead of using node1.isSameNode(node2) // use node1 === node2 // or node1 == node2
var isSameNode = node.isSameNode(other);
other
El nodo contra el cual se realiza la comparación.Specification | Status | Comment |
---|---|---|
{{SpecName('DOM WHATWG', '#interface-node', 'Node')}} | {{Spec2('DOM WHATWG')}} | Eliminado de la especificación. |
{{SpecName('DOM3 Core', 'core.html#Node3-isSameNode', 'Node.isSameNode()')}} | {{Spec2('DOM3 Core')}} | Definición inicial |
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoDesktop("1.0")}} {{CompatNo}} {{CompatGeckoDesktop("10.0")}} |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoMobile("1.0")}} {{CompatNo}} {{CompatGeckoMobile("10.0")}} |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |