We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


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)



Evaluate the XPath expression.

nsISupports evaluate(
  in nsIDOMNode contextNode,
  in unsigned short type,
  in nsISupports result
A DOM node to evaluate the XPath expression against. To evaluate against a whole document, use the document.documentElement method to get the node to evaluate against.
A number that corresponds to one of the type constants of nsIDOMXPathResult.
An existing nsIDOMXPathResult to use for the result. Using null will create a new nsIDOMXPathResult.
Return value

An XPath result.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy, fscholz, trevorh
 Last updated by: Sheppy,