I wrote XPath Functional Test for HTML.
Now, I found some bugs in XPath Engine of Browsers.
Try it.
I wrote XPath Functional Test for HTML.
Now, I found some bugs in XPath Engine of Browsers.
Try it.
Posted by
Hitoshi
at
8:52 PM
0
comments
Labels: javascript, xpath
The pipe "|" operator after Predicate is ignored.
Example:
// 2
alert(
document.evaluate(
'//body | //head', document, null, 7, null).snapshotLength
);
// expected 2 but actually 1
alert(
document.evaluate(
'//body[.] | //head', document, null, 7, null).snapshotLength
);
The "string-after" function gets wrong string.
Example:
// expected "d" actually "cd"
alert(
document.evaluate(
'substring-after("abcd","bc")', document, null, 2, null).stringValue
);
Posted by
Hitoshi
at
9:29 AM
0
comments
Labels: javascript, xpath