isEqualNode
isEqualNode
This page has been flagged with the following issues:
High-level issues:
W3C Recommendation
Summary
Determines whether two nodes are equal in their type, name and namespace.
Method of dom/Node
Syntax
var isEqual = node.isEqualNode(otherNode);
Parameters
otherNode
Data-type: DOM Node
The node to be compared to the node that is executing the method.
Return Value
Returns an object of type Boolean.
Whether the node specified in the otherNode parameter is equal to the current node.
Needs Examples: This section should include examples.
Usage
This method determines whether or not two nodes are equal. Nodes are considered equal when the values of the following attributes are equal:
Notes
Nodes can be equal without being the same. Use isSameNode to determine if two nodes are the same.
Related specifications
| Specification | Status | Related Changes |
|---|---|---|
| DOM Level 3 Core | Recommendation | Section 1.2 |
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? | ? | ? | ? |
See also
Related pages (MSDN)
aappletattributeaudiobuttondivdocumentdocumentTypeframeiframeimginput type=buttoninput type=checkboxinput type=fileinput type=hiddeninput type=imageinput type=passwordinput type=radioinput type=resetinput type=submitinput type=textlabellegendmarqueemediaobjectoptGroupoptionselectsourcespantabletextAreaTextNodevideoisSameNode
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here