• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test that an NCName and * are interpreted as an operator when in binary operator context, and as a NameTest otherwise.
2
3See bug 50366: XPath lexer misinterprets expression starting with "div".
4
5PASS div
6PASS   div
7PASS (div) div (div)
8PASS self::node()[div] div 1
9PASS . div .
10PASS .. div ..
11PASS string(div/@div)
12PASS substring-before('1992', div)
13PASS self::div
14PASS * div 4
15PASS '3' div 4
16PASS "3" div 4
17PASS 12 div 4
18PASS true() and div
19PASS false() or div
20PASS div mod div
21PASS div div div
22PASS 3 * div
23PASS div/div
24PASS div//div
25PASS zz|div
26PASS div+div
27PASS - - div
28PASS 5 -div
29PASS div=div
30PASS div!=div
31PASS div<div
32PASS div<=div
33PASS div>div
34PASS div>=div
35PASS *
36PASS   *
37PASS (*) * (*)
38PASS self::node()[*] * 1
39PASS . * .
40PASS .. * ..
41PASS substring-before('1992', *)
42PASS self::*
43PASS * * 4
44PASS '3' * 4
45PASS "3" * 4
46PASS 12 * 4
47PASS true() and *
48PASS false() or *
49PASS * mod *
50PASS * div *
51PASS 3 * *
52PASS */*
53PASS *//*
54PASS zz|*
55PASS *+*
56PASS - - *
57PASS 5 -*
58PASS *=*
59PASS *!=*
60PASS *<*
61PASS *<=*
62PASS *>*
63PASS *>=*
64PASS or:or
65PASS or:*
66PASS mod
67PASS mod mod mod
68PASS (mod) mod 5
69PASS string(mod/@and)
70PASS successfullyParsed is true
71
72TEST COMPLETE
73
74