Node.isSameNode

Table of contents

  1. 1. Summary
  2. 2. Syntax
  3. 3. Specification
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Specification

« Gecko DOM Reference

Obsolete

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
  node1.isSameNode(node2)
use
  node1 === node2  or  node1 == node2

Syntax

var isSameNode = node.isSameNode(other);
  • other The node to test against.

Specification

Tags (2)

Edit tags

Attachments (0)

 

Attach file