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] |
| 10 $x('./a@href', document.body) |
9 42 | 11 42 |
10 "html" | 12 "html" |
11 false | 13 false |
12 1 | 14 1 |
13 href="http://chromium.org" | 15 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 |
14 VM:1 complete | 18 VM:1 complete |
15 | 19 |
OLD | NEW |