-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Empty string does not fail schema validation with JRuby like it does with MRI #783
Comments
Same behavior happens with 1.5.6.rc2 |
Confirmed with nokogiri 1.5.9 and jruby 1.7.3. |
I've create #2641 which includes a pending (on JRuby) test that captures the issue. I looked into this and I wasn't able to find the root cause -- but I traced enough to verify that |
Brings the behavior in line with CRuby's impl. Closes #783.
PR #3260 will fix this. |
With Nokogiri 1.5.5 on JRuby validating an empty document does not result in an error, while with MRI it does.
If you try the below snippet in MRI and JRuby (XML schema taken from #642, perhaps there is some relation between the issues -- atleast for JRuby):
The text was updated successfully, but these errors were encountered: