W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

Re: empty tags not closed with Tidy ?

From: Jany Quintard <jany.quintard@free.fr>
Date: Fri, 18 Jul 2003 13:15:50 +0200
To: html-tidy@w3.org
Message-ID: <20030718111549.GA15861@figue>

* Fabrice Estiévenart [Fri, 18/07/2003 at 10:33 +0200]
> 
> Hello,
> 
> Why Tidy do not close empty tags (such as <br/>) as it is precisely defined 
> in the XHTML 1.0 Recommendations (http://www.w3.org/TR/xhtml1/#h-4.6) ???
> 
> How can i do to enable that functionnality ?

Fabrice,
are you sure that you are not checking an HTML document. In these case,
the only tag of an empty element looks exactly as the opening tag of any
other.
In HTML (3.2, 4.0, 4.1), break-line is <br>.

The / in <br/> is part of the XML Markup (that makes it easy for the
parser not to confuses incorrect stand alone opening tags and tags
of empty-elements)
Jany
Received on Friday, 18 July 2003 07:16:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC