logo       

Re: bug report (corrected :-): msg#00098

org.w3c.validator

Subject: Re: bug report (corrected :-)


Hi Kevin.
(thanks for your corrections, I forwarded your mail to the list this
time.)

On Thu, Sep 26, 2002, Kevin McManus wrote:
> Hi www-validator@xxxxxx
>
> I believe that you have a bug in your validator
>
> IMHO the 18 lines of valid HTML4.01 at the following URL clearly
> illustrates a bug with nested lists....
>
> http://staffweb.cms.gre.ac.uk/~k.mcmanus/ListTest.html

The validator is right.

I agree that the HTML spec is unclear about nested lists (only a
deprecated example without closing tags...) but if you look at the DTD
you will see that <ul> does not accept anything but <li> as a child,
hence if you want to nest lists you have to make <ul> a child of <li>,
as in:

<ul>
<li>foo</li>
<li>
<ul>
<li>bar</li>
<li>zog</li>
</ul>
</li>
</ul>

This is the proper way to do nested lists in HTML 4.01.

Regards,
--
Olivier Thereaux - W3C
http://www.w3.org/People/olivier | http://yoda.zoy.org




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise