Open Rotzbua opened 4 months ago
This has been discussed https://github.com/orgs/mdn/discussions/242
We are not removing the trailing slashes. Doing so would require forking Prettier. The MDN Web Docs team has decided not to fork Prettier as it would introduce a big maintenance burden that is not sustainable. Concerns can be addressed to the Prettier project.
We are not removing the trailing slashes. Doing so would require forking Prettier.
@estelle not exactly, there’s a Prettier plugin that overrides this setting. So, if we ever reconsider this decision, it would be possible to implement it.
The discussion is about the examples and content. As far as I have checked, prettier is not applied to the HTML template for the website.
The discussion is about the examples and content. As far as I have checked, prettier is not applied to the HTML template for the website.
There’s a .prettierrc config and a test running prettier check in the packgage.json. We apply the same code style across all MDN projects.
Summary
From Nu Html Checker: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
URL
https://developer.mozilla.org/en-US/docs/Glossary/Void_element
Reproduction steps
Expected behavior
Correct html:
Actual behavior
Formal wrong html:
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Windows
Screenshot
No response
Anything else?
No response
Validations