Represents a compiled XPath query returned from nsIDOMXPathEvaluator.createExpression or document.createExpression
Inherits from:
nsISupports
Last changed in Gecko 1.7 Method overview
nsISupports evaluate(in nsIDOMNode contextNode, in unsigned short type, in nsISupports result) |
Methods
evaluate()
Evaluate the XPath expression.
nsISupports evaluate( in nsIDOMNode contextNode, in unsigned short type, in nsISupports result );
Parameters
-
contextNode -
A DOM node to evaluate the XPath expression against. To evaluate against a whole document, use the
document.documentElementmethod to get the node to evaluate against. -
type -
A number that corresponds to one of the type constants of
nsIDOMXPathResult. -
result -
An existing
nsIDOMXPathResultto use for the result. Usingnullwill create a newnsIDOMXPathResult.
Return value
An XPath result.
