Returns whether the current node is equal to the specified one.
Two nodes are equal, when their names are the same, their attributes have the same name and value (the order of attributes may be different), and their child nodes are equal an they are in the same order. That is an simplified definition of two nodes equality, if you need the exact definition of it, please see the isEqualNode (W3C) page.
You can find the related objects in the Supported by objects section below.
|Required. Reference to the node to compare.|
Boolean. One of the following values:
|The specified node and the current node are not equal.|
|The specified node and the current node are equal.|
Example HTML code 1:
This example illustrates the use of the isEqualNode method:
Did you find this example helpful?
User Contributed Comments