OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
| 20 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator |
| 21 |
| 22 // Note: The spec says "the XPathEvaluator interface will be implemented on the |
| 23 // same object which implements the Document interface" and does not define a |
| 24 // constructor or other means to create an XPathEvaluator object. Nonetheless, |
| 25 // Blink, Gecko, Presto, WebKit and all have these APIs on both Document and the |
| 26 // constructable XPathEvaluator interface. |
| 27 |
20 [ | 28 [ |
21 Constructor, | 29 Constructor, |
22 GarbageCollected, | 30 GarbageCollected, |
| 31 Measure, |
23 TypeChecking=Interface, | 32 TypeChecking=Interface, |
24 ] interface XPathEvaluator { | 33 ] interface XPathEvaluator { |
25 [RaisesException] XPathExpression createExpression(DOMString expression, opt
ional XPathNSResolver? resolver = null); | 34 [Measure, RaisesException] XPathExpression createExpression(DOMString expres
sion, optional XPathNSResolver? resolver = null); |
26 | 35 |
27 XPathNSResolver createNSResolver(Node nodeResolver); | 36 [Measure] XPathNSResolver createNSResolver(Node nodeResolver); |
28 | 37 |
29 [RaisesException] XPathResult evaluate(DOMString expression, Node contextNod
e, optional XPathNSResolver? resolver = null, optional unsigned short type = 0,
optional object? inResult = null); | 38 [Measure, RaisesException] XPathResult evaluate(DOMString expression, Node c
ontextNode, optional XPathNSResolver? resolver = null, optional unsigned short t
ype = 0, optional object? inResult = null); |
30 }; | 39 }; |
OLD | NEW |