You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
fiji-flo
added
🐛 bug
Something isn't working, or isn't working as expected
p2
We want to address this but may have other higher priority items.
and removed
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
labels
May 28, 2024
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
The text was updated successfully, but these errors were encountered: