DOMEntityReference.IsEqualNode
IsEqualNode
Syntax
IsEqualNode(<Node>)
Parameters
<Node> (required)
Type: DOMAttribute, DOMDocument, DOMElement, DOMDocumentType, DOMNotation, DOMEntity, DOMDocumentFragment, DOMText, DOMComment, DOMCDATASection, DOMProcessingInstruction, DOMEntityReference, XPathNamespace. The compared DOM node.
Returned value
Type: Boolean.
Description
Checks whether two nodes are equal (different from identity). Two DOM nodes are equal if:
- the nodes belong to the same type;
- the following properties have equal values: (DOMEntityReference.NodeName, DOMEntityReference.LocalName, DOMEntityReference.NamespaceURI, DOMEntityReference.Prefix, DOMEntityReference.NodeValue) (both are undefined or equal);
- the node attribute collections are equal: both are undefined or have the same size and value for the same keys (that can have different indices);
- the child node lists are equal: both are empty or have the same length and contain equal nodes with the same indices.
Normalization affects equality. To avoid comparison errors, you are recommended to normalize nodes before comparison. Two DocumentType nodes are equal, if all of the above conditions are met and the following is true:
- the following properties have equal values: PublicId, SystemId, InternalSubset;
- entity definition collections are equal;
- notation collections are equal.
Equality is not affected by:
- DOMEntityReference.OwnerDocument, DOMEntityReference.BaseURI and DOMEntityReference.ParentNode properties;
- the Specified property for Attribute nodes;
- the IsElementContentWhitespace for Text nodes;
- user data.
Note. Anything that is not included in the above list does not affect equality.
Availability
Server, thick client, external connection, mobile application (server), mobile standalone server.
Translation
Русская версия: СсылкаНаСущностьDOM.УзелРавен (DOMEntityReference.IsEqualNode)
No comments to display
No comments to display