W3C home > Mailing lists > Public > public-html-comments@w3.org > September 2010

Re: self-closing tags in html5

From: Laura Carlson <laura.lee.carlson@gmail.com>
Date: Sun, 26 Sep 2010 04:23:09 -0500
Message-ID: <AANLkTinJRkmG2KeYvhCo2SzD7OB71_VeL=LMnwWRsXN=@mail.gmail.com>
To: "William F. Hammond" <hammond@math.albany.edu>
Cc: public-html-comments@w3.org
Hi William,

If you would like your ideas to officially be given consideration, I
encourage you to start by filing  a bug with the  W3C HTML working
group. I would also encourage you to do this before October 1. An
excellent reference on how to do this is:

How to Comment and When
By Shelley Powers.

Also see:

The HTML5 Document Structure
By Shelley Powers.

Timeline to Last Call
By Maciej Stachowiak.

Best Regards,

On 9/25/10, William F Hammond <hammond@csc.albany.edu> wrote:
> In the spec at (6) (for the text/html serialization):
>    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.
> It would be better to allow self-closing tags on all de facto empty
> elements, foreign or not and defined-empty or not.  That is: for any
> tag name "foo", the markup "<foo/>" should be equivalent to
> "<foo></foo>".  If "foo" is a defined-empty element in the html
> name space, then all of "<foo>", "<foo/>", and "<foo></foo>" should
> be equivalent.
> This is better because (1) authors are given more choice and (2) DOM
> building is simplified.
> For example, while it is true that major browsers seem to treat "<p/>"
> as an open tag, the relevant question for backward comptatibility is
> whether anyone has been relying on the idea that "<p/>" can be used to
> begin a non-empty paragraph.
>                                     -- Bill
> ----------------------------------------------------------------------
> William F. Hammond                   Dept. of Mathematics & Statistics
> hammond@albany.edu                            The University at Albany
> http://www.albany.edu/~hammond/                    Albany, NY (U.S.A.)
> ----------------------------------------------------------------------
> P.S.  It is true that the W3C HTML 4 & 4.01 specifications formally
> (and unwisely for text/html) enabled full SHORTTAG in the accompanying
> SGML declaration.  So, for example,
>      <p/Hello guys!  This is text in
>         a formally legal paragraph. /
> is a correctly marked HTML-4 "p" element according to the
> specification.  But there was no significant appearance of this markup
> across the web in text/html.  (It is simple to modify the SGML
> declaration for HTML 4 to disable this usage.)  A spec compliant
> implementation of HTML 4 would, however, render the content of
>      <p/>Hello guys!</p>
> as ">Hello guys!".

Laura L. Carlson
Received on Sunday, 26 September 2010 09:25:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC