W3C home > Mailing lists > Public > www-validator@w3.org > December 1999

Re: Are lists not processed correctly?

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Fri, 17 Dec 1999 10:22:39 -0500 (EST)
Message-Id: <199912171522.KAA02980@is04.fas.harvard.edu>
To: brjones3@vt.edu, www-validator@w3.org
On Fri, 17 Dec 1999 09:46:55 -0500 (EST), brjones3@vt.edu wrote:
> 
> I have the following list:
> <ul>
> 	<li>
> 		<b>Heading 1</b><br>
> 		Description
> 	</li>
> 	<ul>
> 		<li><b>SubHeading 1</b></li>
[cut]
> 	</ul>
> </ul>
> 
> With the </li> this will not validate correctly.  If I comment out the </li>
> it validates fine.  Is there a problem with the validator?

No.  The problem is that nested UL elements belong within an LI element.
In other words, your indentation is misleading -- it's not showing the
valid tree structure, which is:

<ul>
  <li>
    Heading 1
    <ul>
      <li>SubHeading 1</li>
      [cut]
    </ul>
  </li>
</ul>
	
-David

L. David Baron    Sophomore, Harvard (Physics)    dbaron@fas.harvard.edu
Links, SatPix, CSS, etc.     <URL: http://www.fas.harvard.edu/~dbaron/ >
WSP CSS AC                      <URL: http://www.webstandards.org/css/ >
Received on Friday, 17 December 1999 10:22:40 GMT

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