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

<P> tag generated with enclose-block-text

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Thu, 21 Sep 2000 04:00:28 -0400
Message-Id: <200009210800.EAA01146@tux.w3.org>
To: html-tidy@w3.org
Dave, 

the changes applied by TIDY when using enclose-block-text are breaking
some documents, for example

Input:
...
  <li><b>ABRAMATIC, Bruno</b>,
      Supelec,
      <a href="mailto:abramati_bru@lsi.supelec.fr">abramati_bru@lsi.supelec.fr</a></li>



XHTML Output:
...
<ul>
<li><b>ABRAMATIC, Bruno</b>
<p>, Supelec, <a href="mailto:abramati_bru@lsi.supelec.fr">abramati_bru@lsi.supelec.fr</a></p>
</li>


My reading of the HTML 4.01 strict.dtd is that mixed content is perfectly valid
in this place

<!ELEMENT LI - O (%flow;)*             -- list item -->
<!ENTITY % flow "%block; | %inline;">

and similar for the corresponding XHTML strict.dtd, so IMHO the extra paragraph
tags should not be generated.

Do you agree?

Thanks

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Thursday, 21 September 2000 04:00:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT