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 unneccesarily self-close tags #1122

Merged
merged 1 commit into from
Jan 9, 2020
Merged

Don't unneccesarily self-close tags #1122

merged 1 commit 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.1

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
Copy link
Collaborator

You can preview this change here:

Built with commit 995ed33

https://deploy-preview-1122--govuk-design-system-preview.netlify.com

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.

👨‍🎨

@36degrees 36degrees merged commit 3c1e701 into master Jan 9, 2020
@36degrees 36degrees deleted the self-closing-tags branch January 9, 2020 13:25
domoscargin added a commit that referenced this pull request Feb 15, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 16, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 20, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 20, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 22, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 22, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 22, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 22, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
domoscargin added a commit that referenced this pull request Feb 22, 2023
The self-closing / has no effect on the start tags of void elements in HTML5.

For this reason, we should standardise on omitting them.

https://html.spec.whatwg.org/dev/syntax.html#start-tags
#1122
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