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

Re: Trouble Validating a nested list

From: David Dorward <david@dorward.me.uk>
Date: Sun, 30 Oct 2005 23:52:00 +0000
To: Tyler Smith <tyler.smith@mail.mcgill.ca>
Cc: www-validator@w3.org
Message-Id: <1130716320.7242.1.camel@cyberman.dorward.me.uk>

On Sat, 2005-10-29 at 20:40 -0400, Tyler Smith wrote:
> 1. Error Line 42 column 17: document type does not allow element "OL" 
> here; assuming missing "LI" start-tag.

A list contains list items. Nothing else. A list can contain other
lists, but each other list must form part of a list item.

> 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).


Is the same as

> I thought that </li> tags were optional

They are, which is why the above works.

David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
                             -- The Greatest Show in the Galaxy
Received on Sunday, 30 October 2005 23:47:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:47 UTC