2012-12-14 11:10:49 -08:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
[Constructor]
|
|
|
|
interface XPathEvaluator {
|
|
|
|
// Based on nsIDOMXPathEvaluator
|
2013-09-30 09:32:22 -07:00
|
|
|
[NewObject, Throws]
|
2012-12-14 11:10:49 -08:00
|
|
|
XPathExpression createExpression(DOMString expression,
|
|
|
|
XPathNSResolver? resolver);
|
2014-10-14 07:27:24 -07:00
|
|
|
[Pure]
|
|
|
|
Node createNSResolver(Node nodeResolver);
|
2012-12-14 11:10:49 -08:00
|
|
|
[Throws]
|
2014-11-04 01:20:08 -08:00
|
|
|
XPathResult evaluate(DOMString expression, Node contextNode,
|
2012-12-14 11:10:49 -08:00
|
|
|
XPathNSResolver? resolver, unsigned short type,
|
2013-07-04 08:40:06 -07:00
|
|
|
object? result);
|
2012-12-14 11:10:49 -08:00
|
|
|
};
|