currentNode property

Sets or retrieves where the current node in a filtered TreeWalker hierarchy is positioned.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 1.2Internet Explorer 9

Syntax

JavaScript

oNode = object.currentNode

Property values

Type: Object

Object that receives the current node in the filtered hierarchy.

Exceptions

ExceptionCondition
NotSupportedError

If currentNode is set to null. Earlier versions throw W3CException_NOT_SUPPORTED_ERR.

Standards information

Remarks

currentNode will never return null in Windows Internet Explorer 9, even when the traversing method returns null.

See also

TreeWalker

 

 

Show:
© 2014 Microsoft. All rights reserved.