W3C home > Mailing lists > Public > www-validator@w3.org > September 2004

Re: [VE][74] Error Message Feedback

From: Carole <caroleanne@designs.com>
Date: Thu, 16 Sep 2004 23:11:29 -0700
To: Christoffer Kj°lbŠk <christoffer@kjoelbaek.dk>, www-validator@w3.org
Message-ID: <opsegjhfrubhg79r@sammamish.designs.com>

On Thu, 16 Sep 2004 20:58:46 +0200, Christoffer Kj°lbŠk  
<christoffer@kjoelbaek.dk> wrote:

> Hi
>
> I have some codelinie, like this:
> <ol>
> 	<ol>
> 		<li>Linie 3.1</li>
> 		<li>Linie 3.2</li>
> 	</ol>
> </ol>
>
> This gives the error:
>
> Line 50, column 13: start tag for "LI" omitted, but its declaration does
> not permit this
>
> But, if I write:
> <ol>
> 	<li>Linie 3.1</li>
> 	<li>Linie 3.2</li>
> </ol>
>
> Isn't that a bug? I mean, there is no illegal in the code?

No, the code is incorrect in the original example.  An <ol> or <ul> cannot  
contain an <ol> or an <ul>, but an <li> can.  So, the code would be  
correct if:

<ol>
	<li>
		<ol>
			<li>Linie 3.1</li>
  			<li>Linie 3.2</li>
		</ol>
	</li>
	<li> etc.</li>
</ol>

Hope this helps,

Carole

-- 
Owner, Carole Anne Designs
Member Seattle Fashion Core

Member International Webmasters Association/HTML Writers Guild

Support the Web Accessibility Initiative:  http://www.w3.org/WAI/
and the Web Standards Project:   http://www.webstandards.org/

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Received on Friday, 17 September 2004 07:55:37 GMT

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