RE: Nested Lists

	I came accross a very strange error when I ran a validation on
	a page of mine using the W3C Validation Service.

	I used a simple nested unordered list, which according to
	the specification [2] is quite alright:
	   "Lists may also be nested:"

	My list was in principle constructed as follows:

	   <ul>
	      <li>Heading</li>
	      <ul>
	         <li>Subitem</li>
	         <li>Subitem</li>
	      </ul>
	   </ul>

	The Validation Report said:
	   Error at line 75:
	      <ul>
	         document type does not allow element "UL" here;
	         assuming missing "LI" start-tag

	The correct way to nest lists is:

	<ul>
	  <li>Heading
	    <ul>
	      <li>Subitem</li>
	      <li>Subitem</li>
	    </ul>
	  </li>
	</ul>

	In other words, the entire nested list is a part of the first
list's first item.  Attempting to validate this code will pass.

	-Mike Vitale
	mvitale@wallace.com <mailto:mvitale@wallace.com> 

Received on Wednesday, 11 March 1998 12:25:02 UTC