W3C home > Mailing lists > Public > www-validator@w3.org > October 2005

Re: Trouble Validating a nested list

From: Lou King <lking@knob.com>
Date: Sun, 30 Oct 2005 18:33:59 -0500
Message-ID: <43655867.8050505@knob.com>
To: Tyler Smith <tyler.smith@mail.mcgill.ca>
CC: www-validator@w3.org

Tyler,
Two issues:
1) Your web page was "Not Found" when I tried to look at your HTML. So I 
don't know what DTD you specified. You may be able to get by with a 
Deprecated nested list it you use "loose" vs "strict".

2) Look at HTML 4.01 Specification W3C Recommendation 24 December 1999, 
Section 10.2 Unordered lists (UL), ordered lists (OL), and list
items (LI). Near the end of the section you will find, "List may also be 
nested: DEPRECATED EXAMPLE:".  Suggest you find an other way to do what 
you are trying to do.

Lou


Tyler Smith wrote:
> 
> Hi,
> 
> I'm a beginner with HTML, and I have found the validator and the W3C 
> pages very helpful in getting me started. However, I am confused by the 
> error message I get when trying to validate the following page:
> 
> http://www3.sympatico.ca/tyler006/phdprop.html
> 
> 1. Error Line 42 column 17: document type does not allow element "OL" 
> here; assuming missing "LI" start-tag.
> 
> <ol class="lwrA">
> 
> 2. Error Line 49 column 16: document type does not allow element "OL" 
> here; assuming missing "LI" start-tag.
> 
> <ol class="lwrA">
> 
> The error message suggests that my nested <ol> are not allowed, and 
> should be replaced by a <li>. From the context of the page this is 
> clearly not what I want. I can, however, pass the validation when I 
> remove the </li> tags immediately preceeding each nested <ol> (ie. at 
> line 41 or 48).
> 
> I thought that </li> tags were optional, but that good practice was to 
> include them so as to make my eventual conversion to XHTML smoother. In 
> this case the validator results indicate that they are not a good idea. 
> Could someone clarify this for me?
> 
> Thanks for your time, and my apologies if I've sent this to the wrong list!
> 
> Tyler
> 
> 
> 
> 
Received on Monday, 31 October 2005 04:03:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT