W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: New bug in Tidy?

From: Dave Raggett <dsr@w3.org>
Date: Tue, 15 Feb 2000 13:49:08 +0000 (GMT Standard Time)
To: Barney Wol <Barney.Wol@noctua.demon.co.uk>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10002151343570.800-100000@OEMCOMPUTER>
On Mon, 14 Feb 2000, Barney Wol wrote:

> The Macintosh version of the 13th Jan release produces a pretty 
> similar output, although as I have the "output-xml" option in config 
> set to "no", it gives an HTML 2.0 Doctype, and creates the Style 
> entry in the header.  One does wonder where the "-2em" comes from, 
> but while this is a good party trick, should we really worry if such 
> a non-sensical input gives a rubbish output?  After all, what is the 
> excuse always trotted out for computers - "Garbage in - garbage out!"
> Incidentally, Netscape 4.7 on the Mac displays your example below 
> "sensibly", in that the bullet is pretty hard against the left 
> margin, but it doesn't lose the first word, or anything for that 
> matter.

My apologies for not having made this behavior clear in the
documentation. An <li> element without an enclosing list (ul or ol)
element is an error and gets reported to the user. Originally, it
was corrected by wrapping a ul element around it, however this
caused the page to look quite different from how it would have
looked in Netscape prior to being tidied. By experiment I found that
using the style property to negatively indent the bullet gave a good
semblance of the original rendering. The style attribute will be
ignored by old browsers.


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Tuesday, 15 February 2000 08:49:14 UTC

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