Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

add a single "/" (U+002F) character to void element #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

root75
Copy link

@root75 root75 commented Feb 9, 2017

to be more cleann add the / to void element as described in https://www.w3.org/TR/html5/syntax.html#start-tags point 6.

Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single "/" (U+002F) character. This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.

to be more cleann add the / to void element as described in https://www.w3.org/TR/html5/syntax.html#start-tags point 6.

Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single "/" (U+002F) character. This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.
@GrimLink
Copy link
Contributor

GrimLink commented Jan 12, 2018

Plz don't
There is no need to for adding the / to void elements.

There are more than one example why not to do this.
Google styleguide is one example.

Also the w3 mention it as a optional.

Then, if the element is one of the void elements, or if the element is a foreign element, then there may be a single U+002F SOLIDUS character (/). This character has no effect on void elements, but on foreign elements it marks the start tag as self-closing.

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

Successfully merging this pull request may close these issues.

2 participants