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
def parse path, node
path_stack = @parser.parse( path )
if node.is_a?(Array)
Kernel.warn("REXML::XPath.each, REXML::XPath.first, REXML::XPath.match dropped support for nodeset...", uplevel: 1)
return [] if node.empty?
node = node.first
end
node.document.__send__(:enable_cache) do # <==== Will fail here
match( path_stack, node )
end
end
Instead it should do:
if node.document
node.document.__send__(:enable_cache) do
match( path_stack, node )
end
else
match( path_stack, node )
end