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/.
6 * Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208
10 interface XPathResult {
12 const unsigned short ANY_TYPE = 0;
13 const unsigned short NUMBER_TYPE = 1;
14 const unsigned short STRING_TYPE = 2;
15 const unsigned short BOOLEAN_TYPE = 3;
16 const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4;
17 const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5;
18 const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6;
19 const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7;
20 const unsigned short ANY_UNORDERED_NODE_TYPE = 8;
21 const unsigned short FIRST_ORDERED_NODE_TYPE = 9;
23 readonly attribute unsigned short resultType;
25 readonly attribute double numberValue;
27 readonly attribute DOMString stringValue;
29 readonly attribute boolean booleanValue;
31 readonly attribute Node? singleNodeValue;
32 readonly attribute boolean invalidIteratorState;
34 readonly attribute unsigned long snapshotLength;
38 Node? snapshotItem(unsigned long index);