summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/xpath/union-context-node-expected.txt
blob: dad2dac2b7528e64a292ac6bb64a1a02a87822e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 Querying in the following...

<div xmlns="http://www.w3.org/1999/xhtml" id="test">
    <span id="A">
        <span id="B"></span>
    </span>
    <span id="C">
        <span id="D"></span>
    </span>
</div>

Query "ancestor::xhtml:span" from span#B
Result: span#A
Expected: span#A
SUCCESS

Query ".|ancestor::xhtml:span" from span#B
Result: span#A span#B
Expected: span#A span#B
SUCCESS

Query "ancestor::xhtml:span|." from span#B
Result: span#A span#B
Expected: span#A span#B
SUCCESS

Query "ancestor::xhtml:*[local-name()='span']" from span#B
Result: span#A
Expected: span#A
SUCCESS

Query ".|ancestor::xhtml:*[local-name()='span']" from span#B
Result: span#A span#B
Expected: span#A span#B
SUCCESS

Query "ancestor::xhtml:*[local-name()='span']|." from span#B
Result: span#A span#B
Expected: span#A span#B
SUCCESS

Query "(ancestor::xhtml:*[local-name()='span'])|." from span#B
Result: span#A span#B
Expected: span#A span#B
SUCCESS

Query "following::xhtml:*[local-name()='span']" from span#B
Result: span#C span#D
Expected: span#C span#D
SUCCESS

Query ".|following::xhtml:*[local-name()='span']" from span#B
Result: span#B span#C span#D
Expected: span#B span#C span#D
SUCCESS

Query "following::xhtml:*[local-name()='span']|." from span#B
Result: span#B span#C span#D
Expected: span#B span#C span#D
SUCCESS