OLD | NEW |
1 CONSOLE MESSAGE: line 1: complete | 1 CONSOLE MESSAGE: line 1: complete |
2 Tests $x for iterator and non-iterator types. | 2 Tests $x for iterator and non-iterator types. |
3 | 3 |
4 $x('42') | 4 $x('42') |
5 $x('name(/html)') | 5 $x('name(/html)') |
6 $x('not(42)') | 6 $x('not(42)') |
7 $x('/html/body/p').length | 7 $x('/html/body/p').length |
8 $x('//a/@href')[0] | 8 $x('//a/@href')[0] |
9 $x('./a/@href', document.body)[0] | 9 $x('./a/@href', document.body)[0] |
10 $x('./a@href', document.body) | 10 $x('./a@href', document.body) |
11 42 | 11 42 |
12 "html" | 12 "html" |
13 false | 13 false |
14 1 | 14 1 |
15 href="http://chromium.org" | 15 href="http://chromium.org" |
16 href="http://chromium.org" | 16 href="http://chromium.org" |
17 VM:1 Uncaught DOMException: Failed to execute '$x' on 'CommandLineAPI': The stri
ng './a@href' is not a valid XPath expression.(…)(anonymous function) @ VM:1 | 17 VM:1 Uncaught DOMException: Failed to execute '$x' on 'CommandLineAPI': The stri
ng './a@href' is not a valid XPath expression. |
| 18 at <anonymous>:1:1(anonymous function) @ VM:1 |
18 VM:1 complete | 19 VM:1 complete |
19 | 20 |
OLD | NEW |