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

Re: Trimming of empty P vs. Lynx

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 23 Aug 1999 22:26:44 +0200
Message-ID: <006901beeda7$fcc060a0$9b2190d4@de>
To: <html-tidy@w3.org>
| <BODY>
| This is test output
| <p>
| <pre>
| is there any space?
| </pre>

renders correctly but tidy would removes the empty P here that causes the
empty line *and* this example is illegal HTML4.0 Strict.

BTW: Tidy should correct this and put those Body text into a P or DIV.

| <BODY>
| This is test output
| <br>
| <pre>
| is there any space>
                    ^
| </pre>
| </body>
| </html>

renders without an empty line.

So i think there are no version diffs.

| Of course, I'm using Lynx version 2.8.3dev.6 .  What version are you using?

2.8.2rel.1 (01 Jun 1999) win32 binarys

(same with 2.8.1)

Test case:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>normal text</p>
<pre>this is pre text</pre>
</body>
</html>

Lynx renders:
   normal text
this is pre text


Same case but with line
<p><pre>this is pre text</pre>

Lynx renders:
   normal text

this is pre text


BR Test case:
<br><pre>this is pre text</pre>

Lynx renders:
   normal text
this is pre text


Any other construction won't work, since GUI Browser would render it different
then.

--
regards,
  Björn Höhrmann
Received on Monday, 23 August 1999 16:42:38 GMT

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