diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-01 16:17:52 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-01 16:17:52 +0000 |
commit | f0c734660faea02ce455b14e75e006bb4314e173 (patch) | |
tree | e1919efa87daf5f925fa1fe1e949870f5447fc90 /lib | |
parent | a0e6607a8172f9eaf9a15f03065736deb2035771 (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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rexml/xpath_parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb index 181b2b6e85..a4f5d2508a 100644 --- a/lib/rexml/xpath_parser.rb +++ b/lib/rexml/xpath_parser.rb @@ -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 ) + results += following_siblings end nodeset = results + node_types = ELEMENTS when :preceding_sibling results = [] |