The XPath number() function should also be capable of converting booleans to numbers, something it previously was not able to do. In order to do this reliably we can't rely on the string() function as this would make it impossible to distinguish between literal string values and booleans. This is due to true(), which returns a TrueClass, being converted to the string "true". This string in turn can't be converted to a float. |
||
---|---|---|
.. | ||
oga | ||
oga.rb |