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): XHTML formatting of non-container element closing tags #2356

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Fixes #2355

The JRuby code for SaveContextVisitor is brittle and clearly
buggy (since this bug exists for fragment nodes but not fragments or
document nodes?), but this seems like an easy fix.

Have you included adequate test coverage?

Yes. Though I fear we still don't have enough coverage on JRuby formatting.

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

This brings the JRuby implementation in line with the C implementation and the XHTML spec.

The JRuby code for SaveContextVisitor is brittle and clearly
buggy (since this bug exists for fragment nodes but not fragments or
document nodes?), but this seems like an easy fix.

Fixes #2355
@flavorjones
Copy link
Member Author

Note the BSD build failure is underlying github actions infrastructure flakiness; and the windows 2.5 builds failing is unrelated (see #2354).

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

Successfully merging this pull request may close these issues.

[bug] Inconsistent behavior on JRuby/CRuby
1 participant