You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expression number(//non-existent-node) should evaluate to NaN but it currently evaluates to 0: I verified this by adding the following two tests which should pass, but they fail:
This creates issues for instance with a document as follows
<data>
<itemv="1"/>
<itemv="2"/>
</data>
The query //item[@v = preceding-sibling::item/@v + 1] should return only the second item, but returns both instead. See http://xpather.com/atHhzd0d for an interactive example confirming that only the second item should match.
Looking at the spec, it says that
number(node-set) should first convert the node set to a string,
string(node-set) should return the empty string if the node set is empty,
number("") should return NaN.
The text was updated successfully, but these errors were encountered:
The expression
number(//non-existent-node)
should evaluate toNaN
but it currently evaluates to0
: I verified this by adding the following two tests which should pass, but they fail:This creates issues for instance with a document as follows
The query
//item[@v = preceding-sibling::item/@v + 1]
should return only the second item, but returns both instead. See http://xpather.com/atHhzd0d for an interactive example confirming that only the second item should match.Looking at the spec, it says that
number(node-set)
should first convert the node set to a string,string(node-set)
should return the empty string if the node set is empty,number("")
should returnNaN
.The text was updated successfully, but these errors were encountered: