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

Re: Repairing incorrect tag minimisation was Re: Tags lacking a terminating '>' are spotted

From: Dave Raggett <dsr@w3.org>
Date: Wed, 13 Feb 2002 09:58:18 +0000 (GMT Standard Time)
To: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
cc: bfowler@ewitness.co.uk, html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10202130954150.-360867@hazel>
For what it's worth, Tidy embodies knowledge that in Netscape
and Internet Explorer, list items that aren't enclosed in
<ul> or <ol> are terminated by block level markup like <p>

Thus

 <li>foo
 <li>bar
 <p>It's been a long day ...

is tidied to:

 <ul>
 <li>foo
 <li>bar
 </ul>
 <p>It's been a long day ...

Originally, I added a CSS style property to outdent the
list items when the <ul> was implied in this way, so as
to duplicate the rendering behavior on NN and IE, but
sadly, some browsers had problems with negative margins,
so I dropped this.

Regards,

-- Dave Raggett <dsr@w3.org> or <dave.raggett@openwave.com>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett 
tel/fax: +44 122 586-6240 (or 7351) +44 771 213 7629 (mobile)
Received on Wednesday, 13 February 2002 04:58:24 GMT

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