Share via


previousSibling method

Retrieves the previous sibling of the current node in the filtered TreeWalker hierarchy and updates IDOMTreeWalker::currentNode.

 

Syntax

HRESULT retVal = object.previousSibling(oNode);

Parameters

  • oNode [out, retval]
    Type: Node

    Object that receives the previous child of a parent node in the filtered TreeWalker hierarchy.

Return value

Type: HRESULT

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

Standards information

Remarks

IDOMTreeWalker::previousSibling sets the IDOMTreeWalker::currentNode to the returned node. It returns NULL if there are no more child nodes.