Simple nested <ul> fails validation - Bug or my Stupidity?

Dear W3C:

	I was cleaning up a simple home page and got down to the following error
concerning the use of nested lists. The list syntax was taken directly
from w3cschools css ul example, so I was quite surprised at the error. The
validation was under HTML 4.01 Strict. The page being checked was:

	http://ecstasy.3111skyline.com:8084/test.html

	The error presented was:

Error found while checking this document as HTML 4.01 Strict!

Validation Output:  1 Error

   Error  Line 17, Column 19:  document type does not allow element "UL" here;
assuming missing "LI" start-tag.

      <ul class="circle">

	The entire page is made up of the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<TITLE>W3C Errors Validating it Own Example Code....</TITLE>
<style type="text/css">
ul.disc {list-style-type: disc}
ul.circle {list-style-type: circle}
</style>
</head>

<body>
<ul class="disc">
<li>Disc type</li>
<li>Tea</li>
<li>Coca Cola</li>
	<ul class="circle">
	<li>Circle type</li>
	<li>Tea</li>
	<li>Coca Cola</li>
</ul>
</ul>

<ul class="circle">
<li>Circle type</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>

</body>
</html>

	Why does the simple use of the nested list result in a validation error?


-- 
David C. Rankin, J.D.,P.E.      |          openSoftware und SystemEntwicklung
Rankin Law Firm, PLLC           |             Countdown for openSuSE 11.1
www.rankinlawfirm.com           |        http://counter.opensuse.org/11.1/small

Received on Monday, 8 December 2008 07:18:20 UTC