firstChild method

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

Retrieves a reference to the first child of the current node of the filtered TreeWalker hierarchy and updates currentNode.

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

Syntax

HRESULT retVal = object.firstChild();

Standards information

Parameters

  • ppRetNode [out, retval]
    Type: IDispatch

    Address of a pointer to a type IDispatch interface that receives the first child 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.

Remarks

firstChild sets the currentNode to the returned node.

 

 

Build date: 1/26/2012