We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looks like NodeSet#slice isn't handling range beyond the end of the array...
#!/usr/bin/env ruby require 'rubygems' require 'nokogiri' xml = Nokogiri::XML('<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <item><title>t1</title></item> <item><title>t2</title></item> </channel> </rss> ') items = (xml/:item) not_blowed_up = items[0, items.size] all_blowed_up = items[0, 100]
The text was updated successfully, but these errors were encountered:
fixing node slices where the slice is larger than the node set length. closed by 9f04464
Sorry, something went wrong.
No branches or pull requests
Looks like NodeSet#slice isn't handling range beyond the end of the array...
The text was updated successfully, but these errors were encountered: