W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

Re: Syntactic vs. stylistic issues

From: Howard Kaikow <kaikow@standards.com>
Date: Mon, 04 Dec 2000 03:17:04 -0500
Message-Id: <4.3.2.7.0.20001204030324.00b7f798@127.0.0,1>
To: html-tidy@w3.org
Cc: Howard Kaikow <kaikow@standards.com>
Tidy is overzealous because the current draft of HTML 4.01 that I 
downloaded does not preclude empty paragraphs, rather it only discourages 
their use.

Tidy should have an option to retain empty paragraphs, since they are 
currently syntactically valid, and offer an option of deleting them. 
Presently, there is no way to retain empty paragraphs with Tidy.

<p>&nbsp;</p>
<blockquote>
<p><b>UsageNote</b>: If you have difficulty accessing ftp.DoesNotExist.com, 
you may try ftp.MaybeThisExists.com.</p>
</blockquote>

<p></p>
<blockquote>
<p><b>UsageNote</b>: If you have difficulty accessing ftp.DoesNotExist.com, 
you may try ftp.MaybeThisExists.com.</p>
</blockquote>


At 22:32 12/3/2000, Gary L Peskin wrote:
 >Howard Kaikow wrote:
 >> For example, I have the following construct in a number of files (Note that
 >> the URLs below are not, as far as I know, actual URLs):
 >>
 >> <P><BLOCKQUOTE><B>Usage Note:</B> If you have difficulty accessing
 >> ftp.DoesNotExist.com, you may try ftp.MaybeThisExists.com.</BLOCKQUOTE>
 >>
 >> Running TidyGUI, this gets converted to:
 >>
 >> <blockquote><b>Usage Note:</b>
 >> <p>If you have difficulty accessing ftp.DoesNotExist.com, you may try
 >> ftp.MaybeThisExists.com.</p>
 >> </blockquote>
 >>
 >> This breaks the run-in/dictionary style.
 >>
 >> Why was that done?
 >
 >According to http://www.w3.org/TR/html401/struct/text.html#edef-P the
 >only elements allowed inside a <p> tag are defined by %inline;
 >
 >%inline;, in turn, is defined at
 >http://www.w3.org/TR/html401/sgml/dtd.html#inline and does not include
 ><blockquote>.  Tidy has made a guess at what you wanted and changed your
 >HTML to legal (or "tidied") HTML.
 >
 >Gary
Received on Monday, 4 December 2000 03:38:25 GMT

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