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