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: Fri, 24 Mar 2000 11:45:45 -0600
To: Barney Wol <Barney.Wol@noctua.demon.co.uk>
Cc: html-tidy@w3.org
Message-ID: <OF3394B3AD.5B86B111-ON86256886.004BF726@rfdinc.com>

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 Friday, 24 March 2000 12:46:40 UTC

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