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

Re: HTML end tags for empty elements

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 10 Sep 2005 21:49:36 +1000
Message-ID: <4322C850.7000907@lachy.id.au>
To: Alun Jones <a.jones@hccnet.nl>
CC: "www-validator@w3.org" <www-validator@w3.org>

Alun Jones wrote:
> In HTML the element input and img are not flagged as errors when end 
> tags are added:
> <input type="text" />
> should be
> <input type="text">
> No errors or warnings are given by the validator.
> ...
> Should not all of these EMPTY elements be flagged as errors when end 
> tag/slash are added, for all HTML Doctypes?

No, that syntax in HTML has a different meaning from that in XML.
http://www.cs.tut.fi/~jkorpela/html/empty.html

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Saturday, 10 September 2005 11:49:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT