Check if two list items in two different lists are equal:
The result of x could be:
The isEqualNode() method checks if two nodes are equal.
Two nodes are equal if all the following conditions are true:
Tip: Use the isSameNode() method to determine if two nodes are the same node.
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
isEqualNode() | Yes | 9.0 | Yes | Yes | Yes |
Parameter | Type | Description |
---|---|---|
node | Node object | Required. The node you want to compare the specified node with |
Return Value: | A Boolean, returns true if the two nodes are equal, otherwise false |
---|---|
DOM Version | Core Level 3 Node Object |