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
Actual behavior (the bug)
<div class="def"></div>
Expected behavior
<div class="abc def"></div>
To Reproduce
import static j2html.TagCreator.*; import org.junit.Assert; public class Bug { public static final void bug() { final String html = div(attrs(".abc")) .withClass("def") //or: .withClasses("def") .withText("") .render(); System.out.println(html); // prints: <div class="def"></div> Assert.assertEquals("<div class=\"abc def\"></div>", html); // Expected is: <div class="abc def"></div> } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actual behavior (the bug)
Expected behavior
To Reproduce
The text was updated successfully, but these errors were encountered: