XPathResult.webidl (1381B)
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 * 6 * Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208 7 */ 8 9 [Exposed=Window] 10 interface XPathResult { 11 // XPathResultType 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; 22 23 readonly attribute unsigned short resultType; 24 [Throws] 25 readonly attribute double numberValue; 26 [Throws] 27 readonly attribute DOMString stringValue; 28 [Throws] 29 readonly attribute boolean booleanValue; 30 [Throws] 31 readonly attribute Node? singleNodeValue; 32 readonly attribute boolean invalidIteratorState; 33 [Throws] 34 readonly attribute unsigned long snapshotLength; 35 [Throws] 36 Node? iterateNext(); 37 [Throws] 38 Node? snapshotItem(unsigned long index); 39 };