XPathExpression

This object is available to unprivileged JavaScript. It implements the following interfaces:

Methods

nsISupports evaluate ( Node contextNode , short type , nsISupports result ) nsISupports evaluateWithContext ( Node contextNode , int contextPosition , int contextSize , short type , nsISupports result )

nsISupports evaluate ( Node contextNode , short type , nsISupports result )

Arguments:
contextNode
type
result

nsISupports evaluateWithContext ( Node contextNode , int contextPosition , int contextSize , short type , nsISupports result )

Evaluate the expression with the given context. Similar to nsIDOMXPathExpression::evaluate(), except that this takes the context position and size too.

Arguments:
contextNode: The context node
contextPosition: The context position
contextSize: The context size
type: The needed result type
result: The result

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com