blob: dfd62b1539d796581be0bacae4ebc8d17effc3a2 [file] [log] [blame]
CONSOLE MESSAGE: line 1: complete
Tests $x for iterator and non-iterator types.
$x('42')
$x('name(/html)')
$x('not(42)')
$x('/html/body/p').length
$x('//a/@href')[0]
$x('./a/@href', document.body)[0]
$x('./a@href', document.body)
42
"html"
false
1
href="http://chromium.org"
href="http://chromium.org"
VM:1 Uncaught DOMException: Failed to execute '$x' on 'CommandLineAPI': The string './a@href' is not a valid XPath expression.
at <anonymous>:1:1
(anonymous) @ VM:1
VM:1 complete