summaryrefslogtreecommitdiff
path: root/lib/rexml/xpath_parser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-01 16:17:52 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-01 16:17:52 +0000
commitf0c734660faea02ce455b14e75e006bb4314e173 ()
treee1919efa87daf5f925fa1fe1e949870f5447fc90 /lib/rexml/xpath_parser.rb
parenta0e6607a8172f9eaf9a15f03065736deb2035771 (diff)
Start re-enabling Jaxen tests
[Bug #14600] Reported by MSP-Greg. Thanks!!! * lib/rexml/xpath_parser.rb: Fix a bug that "following_siblings::*[N]" doesn't work. * test/rexml/test_jaxen.rb: Enable only axis test for now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rexml/xpath_parser.rb3
1 files changed, 2 insertions, 1 deletions
@@ -321,9 +321,10 @@ module REXML
all_siblings = node.parent.children
current_index = all_siblings.index( node )
following_siblings = all_siblings[ current_index+1 .. -1 ]
- results += expr( path_stack.dclone, following_siblings )
end
nodeset = results
when :preceding_sibling
results = []