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

Allow self-closing tags without slash for empty elements #21

Open
stoically opened this issue Jul 6, 2022 · 0 comments
Open

Allow self-closing tags without slash for empty elements #21

stoically opened this issue Jul 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stoically
Copy link
Owner

stoically commented Jul 6, 2022

Currently self-closing empty elements require a slash. E.g. <br/> is currently needed, but just writing <br> should also work.

This should probably be a configuration option, so that it's possible to disable the behavior to keep backwards compatibility.

See also https://developer.mozilla.org/en-US/docs/Glossary/Empty_element

@stoically stoically added the enhancement New feature or request label Jul 6, 2022
@stoically stoically changed the title Allow self-closing tags for empty elements Allow self-closing tags without slash for empty elements Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant