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
The node name for comments is "comment" on MRI, but "#comment" on JRuby.
"comment"
"#comment"
Run the following on JRuby:
input = %[ <link rel="stylesheet" href="/foo.css" /> <!--[if lt IE 9]> <script src="/js/lib/html5shiv.js"></script> <![endif]--> ] require 'nokogiri' doc = Nokogiri::HTML.parse(input) comment_nodes = doc.xpath('descendant-or-self::comment()') p comment_nodes.first.name
Result from JRuby:
% ruby test.rb "#comment" %
Result from MRI:
% ruby test.rb "comment" %
The text was updated successfully, but these errors were encountered:
Thanks for reporting. This bug has been fixed by the commit, 280c995
Sorry, something went wrong.
No branches or pull requests
The node name for comments is
"comment"
on MRI, but"#comment"
on JRuby.Steps to reproduce
Run the following on JRuby:
Expected output
Result from JRuby:
Actual output
Result from MRI:
The text was updated successfully, but these errors were encountered: