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
require 'nokogiri'
xpath = "concat('a','b')"
d = Nokogiri::HTML("")
p d.at_xpath(xpath), d.xpath(xpath)
#=> nil
#=> []
Compare this with the following string pasted into the address bar of Safari, Chrome, Firefox, or Opera: javascript:alert( (new XPathEvaluator).evaluate( "concat('a','b')", document.documentElement ).stringValue );
Or compare to the result from the REXML implementation:
require 'rexml/document'
d = REXML::Document.new("")
p REXML::XPath.first(d, "concat('a','b')")
#=> "ab"
The text was updated successfully, but these errors were encountered:
Compare this with the following string pasted into the address bar of Safari, Chrome, Firefox, or Opera:
javascript:alert( (new XPathEvaluator).evaluate( "concat('a','b')", document.documentElement ).stringValue );
Or compare to the result from the REXML implementation:
The text was updated successfully, but these errors were encountered: