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

Don't unnecessarily self-close tags #1690

Merged
merged 2 commits into from
Jan 9, 2020
Merged

Don't unnecessarily self-close tags #1690

merged 2 commits into from
Jan 9, 2020

Conversation

36degrees
Copy link
Contributor

We're currently inconsistent as to whether we self-close void elements or not.

The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

We're currently inconsistent as to whether we self-close void elements or not.

The self-closing / has no effect on the start tags of void elements in HTML5.[1]

For this reason, we should standardise on omitting them.

[1]: https://html.spec.whatwg.org/dev/syntax.html#start-tags
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1690 January 9, 2020 10:14 Inactive
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, think this needs a CHANGELOG entry even though it's pretty trivial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants