Bugs: Browse | Submit New | Admin
The method child_index(), in file "rexml-nodepath.rb", is incorrectly returning 0-based indexes for XPath elements. They should be 1-based. This causes the full_path() method to return paths that aren't valid. I've included a patch that fixes the problem, a unit-test to test it, and a patch for test_scripts.rb that corrects a bad XPath that takes advantage of the bug. Cheers, --john
Add A Comment: