2012-12-14 23:10:49 +04: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 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-14 23:10:49 +04:00
|
|
|
XPathExpression createExpression(DOMString expression,
|
|
|
|
XPathNSResolver? resolver);
|
2014-10-14 18:27:24 +04:00
|
|
|
[Pure]
|
|
|
|
Node createNSResolver(Node nodeResolver);
|
2012-12-14 23:10:49 +04:00
|
|
|
[Throws]
|
2014-11-04 12:20:08 +03:00
|
|
|
XPathResult evaluate(DOMString expression, Node contextNode,
|
2012-12-14 23:10:49 +04:00
|
|
|
XPathNSResolver? resolver, unsigned short type,
|
2013-07-04 19:40:06 +04:00
|
|
|
object? result);
|
2012-12-14 23:10:49 +04:00
|
|
|
};
|