Skip to content
New issue

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

Error unlinking empty document in jruby #1112

Closed
wobh opened this issue May 27, 2014 · 0 comments
Closed

Error unlinking empty document in jruby #1112

wobh opened this issue May 27, 2014 · 0 comments
Milestone

Comments

@wobh
Copy link

wobh commented May 27, 2014

My coworker and I ran into this funny case where the jruby version of Nokogiri kicks up an error that MRI does not:

~% jruby -e "require 'nokogiri'; Nokogiri::HTML::DocumentFragment.parse('').unlink"
RuntimeError: TYPE: 11 PARENT NULL
  unlink at nokogiri/XmlNode.java:1313
  (root) at -e:1
~% ruby -e "require 'nokogiri'; Nokogiri::HTML::DocumentFragment.parse('').unlink"
~%

The case for this is easily avoided with blank checking, but we were wondering if there was any explanation for it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants