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
Discovered while working on #761 (test breakage on the issue-761 branch). Getting the following exception:
# NokogiriHelpers.java:105:in `getCachedNodeOrCreate': java.lang.ClassCastException: nokogiri.XmlNamespace cannot be cast to nokogiri.XmlDocument
I've found this behavior is different in the two following examples.
Example 1:
xml=<<EOXML<root xmlns:foo="http://google.com/"> <foo:node>hello</foo:node></root>EOXMLdoc=Nokogiri::XMLxmlputsdoc.xpath("//namespace::*").inspect# first time is OKputsdoc.xpath("//namespace::*").inspect# second time raises exception
Discovered while working on #761 (test breakage on the
issue-761
branch). Getting the following exception:I've found this behavior is different in the two following examples.
Example 1:
Example 2:
The text was updated successfully, but these errors were encountered: