Bug 16066 - Use of single solidus character on void elements. Almost all void elements used in the examples throughout the HTML5 specification have no closing single solidus character. In the Start tags section (8.1.2.1) it states that its use has no effect on void e
Use of single solidus character on void elements. Almost all void elements us...
Status: RESOLVED WONTFIX
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec
unspecified
Other other
: P3 normal
: ---
Assigned To: Ian 'Hixie' Hickson
HTML WG Bugzilla archive list
http://www.whatwg.org/specs/web-apps/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-21 21:59 UTC by contributor
Modified: 2012-03-03 20:35 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description contributor 2012-02-21 21:59:29 UTC
Specification: http://www.w3.org/TR/html5/Overview.html
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Use of single solidus character on void elements.

Almost all void elements used in the examples throughout the HTML5
specification have no closing single solidus character.
In the Start tags section (8.1.2.1) it states that its use has no effect on
void elements but it does on foreign elements.
While not required, I'd suggest to use it on all void elements in the examples
as well. This sets a good example and ensures that the reader gets presented
with a consistent style for self-closing elements.
It would be even better if a statement was added to the specs about what is
recommended or considered good practise to do.

Posted from: 87.195.226.142
User agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Comment 1 Tab Atkins Jr. 2012-02-22 18:21:11 UTC
The self-closing slash is an XML-ism that has no effect on HTML.  I don't understand what we'd be "setting an example" for by using it in more examples.
Comment 2 Ms2ger 2012-03-03 20:35:12 UTC
The editor explicitly wishes to show different styles of authoring, to make it clear none of them is recommended over the others.