Re: [VE][74] Error Message Feedback

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 UTC