W3C home > Mailing lists > Public > www-validator@w3.org > September 2015

Re: What is wrong with <td/>?

From: David Dorward <david@dorward.me.uk>
Date: Sat, 19 Sep 2015 14:15:05 +0100
To: "Roger W Haworth" <W@RHaworth.net>
Cc: www-validator@w3.org
Message-ID: <D5A6D332-9123-4D97-9623-B72ACA8F9C89@dorward.me.uk>
On 19 Sep 2015, at 14:10, Roger W Haworth wrote:

> I also received a reply from David Dorward who pointed me to the specification and said it is not a bug. But I still think it is retrogression!

It isn't.

In XHTML the syntax is allowed, but the HTML Compatibility Guidelines forbid it: http://www.w3.org/TR/xhtml-media-types/#C_3 (and HTML 5 is primarily an HTML specification, not an XHTML specification).

In HTML 4, the syntax is allowed, but `<td />` should be parsed as `<td>&gt;` (almost no browser on the market ever got that correct though) and their use is warned against by the spec: http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7

David Dorward
Received on Saturday, 19 September 2015 13:15:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:51 UTC