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

fix(jruby): serializing HTML with no save options emits HTML #2803

Merged

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

On JRuby, serializing an HTML node or document without specifying save options (as with calling #write_to) would emit XML. Now this mimics the libxml2 behavior of emitting HTML.

This PR also contains a commit to close #2767 by making SaveOptions#inspect contain the names of the options set.

Have you included adequate test coverage?

Yes!

Does this change affect the behavior of either the C or the Java implementations?

Bringing the Java impl into agreement with CRuby impl.

Previously this emitted XML. this brings the implementation into
agreement with the CRuby implementation.
@flavorjones flavorjones force-pushed the flavorjones-fix-jruby-html-serialization-no-save-options branch from 06d64c6 to 5242eff Compare February 28, 2023 21:07
@flavorjones flavorjones merged commit 95fb122 into main Mar 1, 2023
@flavorjones flavorjones deleted the flavorjones-fix-jruby-html-serialization-no-save-options branch March 1, 2023 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] SaveOptions.inspect should show the options set (similar to ParseOptions)
1 participant