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/.
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.
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.
18 XPathResult evaluateWithContext(Node contextNode,
19 unsigned long contextPosition,
20 unsigned long contextSize,
21 unsigned short type, object? result);