OLD | NEW |
1 Tests node xPath construction | 1 Tests node xPath construction |
2 | 2 |
3 3 Prefix Suffix | 3 3 Prefix <greeting>Hello, world!</greeting> Suffix |
4 4 | 4 4 |
5 5 | 5 5 |
6 6 | 6 6 |
7 '#document':'' - '/' | 7 '#document':'' - '/' |
8 '#comment':' Pre-comment ' - '/comment()[1]' | 8 '#comment':' Pre-comment ' - '/comment()[1]' |
9 'html':'' - '/html' | 9 'html':'' - '/html' |
10 'head':'' - '/html/head' | 10 'head':'' - '/html/head' |
11 'script':'' - '//*[@id="script-id"]' | 11 'script':'' - '//*[@id="script-id"]' |
12 'script':'' - '/html/head/script[2]' | 12 'script':'' - '/html/head/script[2]' |
13 'script':'' - '/html/head/script[4]' | 13 'script':'' - '/html/head/script[4]' |
14 '#text':'\n// Comment\n//' - '/html/head/script[4]/text()[1]' | 14 '#text':'\n// Comment\n//\nfunction f()\n{\n document.write("<");\n}\
n//\n' - '/html/head/script[4]/text()' |
15 '#cdata-section':'\nfunction f()\n{\n document.write("<");\n}\n//' -
'/html/head/script[4]/text()[2]' | |
16 'body':'' - '/html/body' | 15 'body':'' - '/html/body' |
17 'p':'' - '/html/body/p' | 16 'p':'' - '/html/body/p' |
18 '#text':'Tests node xPath construction' - '/html/body/p/text()' | 17 '#text':'Tests node xPath construction' - '/html/body/p/text()' |
19 'div':'' - '//*[@id="id1"]' | 18 'div':'' - '//*[@id="id1"]' |
20 'div':'' - '//*[@id="id2"]' | 19 'div':'' - '//*[@id="id2"]' |
21 'div':'' - '//*[@id="container"]' | 20 'div':'' - '//*[@id="container"]' |
22 'div':'' - '//*[@id="id3"]' | 21 'div':'' - '//*[@id="id3"]' |
23 '#text':'3 Prefix ' - '//*[@id="id3"]/text()[1]' | 22 '#text':'3 Prefix <greeting>Hello, world!</greeting> Suffix' - '//*[@i
d="id3"]/text()' |
24 '#cdata-section':'<greeting>Hello, world!</greeting>' - '//*[@id="id3"
]/text()[2]' | |
25 '#text':' Suffix' - '//*[@id="id3"]/text()[3]' | |
26 'div':'' - '//*[@id="id4"]' | 23 'div':'' - '//*[@id="id4"]' |
27 '#text':'4' - '//*[@id="id4"]/text()' | 24 '#text':'4' - '//*[@id="id4"]/text()' |
28 'div':'' - '//*[@id="id5"]' | 25 'div':'' - '//*[@id="id5"]' |
29 '#text':'5' - '//*[@id="id5"]/text()' | 26 '#text':'5' - '//*[@id="id5"]/text()' |
30 'div':'' - '//*[@id="id6"]' | 27 'div':'' - '//*[@id="id6"]' |
31 '#text':'6' - '//*[@id="id6"]/text()' | 28 '#text':'6' - '//*[@id="id6"]/text()' |
32 '#comment':' Post-comment ' - '/comment()[2]' | 29 '#comment':' Post-comment ' - '/comment()[2]' |
33 | 30 |
OLD | NEW |