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

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 UTC