2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-12-14 23:10:49 +04:00
|
|
|
/* 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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface XPathEvaluator {
|
2019-09-12 14:01:17 +03:00
|
|
|
constructor();
|
|
|
|
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject, Throws]
|
2012-12-14 23:10:49 +04:00
|
|
|
XPathExpression createExpression(DOMString expression,
|
2017-09-28 19:14:46 +03:00
|
|
|
optional XPathNSResolver? resolver = null);
|
2014-10-14 18:27:24 +04:00
|
|
|
[Pure]
|
|
|
|
Node createNSResolver(Node nodeResolver);
|
2012-12-14 23:10:49 +04:00
|
|
|
[Throws]
|
2017-09-28 19:14:46 +03:00
|
|
|
XPathResult evaluate(DOMString expression,
|
|
|
|
Node contextNode,
|
|
|
|
optional XPathNSResolver? resolver = null,
|
|
|
|
optional unsigned short type = 0 /* XPathResult.ANY_TYPE */,
|
|
|
|
optional object? result = null);
|
2012-12-14 23:10:49 +04:00
|
|
|
};
|