Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / webidl / XPathExpression.webidl
blobdd5835492efe3fb0d4bb0b9030f955578c6af552
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 interface XPathExpression {
8   // The result specifies a specific result object which may be reused and
9   // returned by this method. If this is specified as null or it's not an
10   // XPathResult object, a new result object will be constructed and returned.
11   [Throws]
12   XPathResult evaluate(Node contextNode, unsigned short type, object? result);
14   // The result specifies a specific result object which may be reused and
15   // returned by this method. If this is specified as null or it's not an
16   // XPathResult object, a new result object will be constructed and returned.
17   [Throws, ChromeOnly]
18   XPathResult evaluateWithContext(Node contextNode,
19                                   unsigned long contextPosition,
20                                   unsigned long contextSize,
21                                   unsigned short type, object? result);