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

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

From: David C. Rankin <drankinatty@suddenlinkmail.com>
Date: Fri, 05 Dec 2008 18:18:32 -0600
Message-ID: <4939C4D8.1070205@suddenlinkmail.com>
To: www-validator@w3.org

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:


	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:


<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}

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

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


	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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:57 UTC