mozilla

Revision 6654 of XPathExpression

  • Revision slug: XPathExpression
  • Revision title: XPathExpression
  • Revision id: 6654
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment started page
Tags: 

Revision Content

An XPathExpression is a compiled XPath query returned from document.createExpression(). It has a method evaluate() which can be used to execute the compiled XPath.

Methods

  • evaluate (contextNode, type, result) - provide a context node/document, XPathResult constant, and XPathResult to store the query or null to return a new XPathResult.

Revision Source

<p>An XPathExpression is a compiled XPath query returned from <a href="en/DOM/document.createExpression">document.createExpression()</a>. It has a method <code>evaluate()</code> which can be used to execute the compiled XPath.
</p>
<h3 name="Methods">Methods</h3>
<ul><li> evaluate (contextNode, type, result) - provide a context node/document, <a href="en/XPathResult">XPathResult</a> constant, and XPathResult to store the query or null to return a new XPathResult.
</li></ul>
Revert to this revision