This topic has not yet been rated - Rate this topic

isEqualNode method

[This documentation is preliminary and is subject to change.]

Determines if two nodes are equal.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

Syntax

object.isEqualNode(otherNode, )

Standards information

Parameters

otherNode [in]

Type: IHTMLDOMNode3

The node to be compared to the node that is executing the method.

isEqual [out, retval]
C++A pointer to a Boolean that receives one of the following values:
JavaScriptBoolean. Returns one of the following values:

VARIANT_TRUE (true)

The node specified in the otherNode parameter is equal to the current node.

VARIANT_FALSE (false)

The nodes are not equal.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Type: BooleanA pointer to a Boolean that receives one of the following values:Boolean. Returns one of the following values:VARIANT_TRUEtrue

The node specified in the otherNode parameter is equal to the current node.

VARIANT_FALSEfalse

The nodes are not equal.

Remarks

This method determines whether or not two nodes are equal. Nodes are considered equal when the values of the following attributes are equal:

Nodes can be equal without being the same. Use isSameNode to determine if two nodes are the same.

See also

a
applet
attribute
audio
button
div
document
documentType
frame
iframe
img
input type=button
input type=checkbox
input type=file
input type=hidden
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
label
legend
marquee
media
object
optGroup
option
select
source
span
table
textArea
TextNode
video
isSameNode

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ