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