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
Temple is amazing so far. Thanks for this library.
Describe the bug SVG void elements nest siblings without a self-closing slash
To Reproduce Steps to reproduce the behavior:
def test do temple do rect width: "256" circle cx: "128" end end # "<rect width=\"256\">\n<circle cx=\"128\">\n"
In browser, unintended closing tag is added
<!-- --> <rect width="256"> <circle cx="128"> </rect>
Expected behavior A clear and concise description of what you expected to happen.
rect width: "256" circle cx: "128"
Should result in
<!-- In browser, unintended closing tag is added --> <rect width="256" /> <circle cx="128" />
Should equal
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
Current workaround is /: true attribute.
/: true
I think Temple could add a slash to all self-closing tags because HTML has no problem with them.
The text was updated successfully, but these errors were encountered:
It looks like I'm the html spec, all foreign elements (svg and math ml) have to be self closing, probably an easy fix here.
Sorry, something went wrong.
fix: void foreign elements get self closing tags
b1302b4
Closes #242 fix: add mathml tags to formatter
fix: void foreign elements get self closing tags (#243)
4e8de14
Successfully merging a pull request may close this issue.
Temple is amazing so far. Thanks for this library.
Describe the bug
SVG void elements nest siblings without a self-closing slash
To Reproduce
Steps to reproduce the behavior:
In browser, unintended closing tag is added
Expected behavior
A clear and concise description of what you expected to happen.
Should result in
Should equal
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Current workaround is
/: true
attribute.I think Temple could add a slash to all self-closing tags because HTML has no problem with them.
The text was updated successfully, but these errors were encountered: