W3C home > Mailing lists > Public > www-validator@w3.org > June 2004

Re: Empty lists (was [VE][73] New Error Message Suggestion)

From: David Dorward <david@dorward.me.uk>
Date: Wed, 2 Jun 2004 12:40:19 +0100
Message-Id: <A0386750-B489-11D8-A2BD-000A957E4F00@dorward.me.uk>
Cc: <www-validator@w3.org>
To: Martin Koníček <martin.konicek@svetnotebooku.cz>

On 2 Jun 2004, at 10:52, Martin Koníček wrote:
> 370: <ul>
>
> 371: </ul>
>
> Line 371, column 4: end tag for "ul" which is not finished

This is a bug in your code, not the validator. You cannot have an empty 
list.

> But <ul> is finished correctly, I thing you expect 
> <ul><li>some</li></ul>

Correct.

> , but in some time you have no data on dynamic page

Then you should test for that situation and not produce a list at all 
if there are no list items.

If you think the next version of the XHTML specification should allow 
empty lists then the proper place to raise the issue is the www-html 
mailing list <http://lists.w3.org/> (as it is an issue with the (X)HTML 
language, not the validator), after searching the archives to see any 
previous discussion on the subject.

You don't appear to have made a new error message suggestion, please 
use more appropriate subject lines in future. Thank-you.

--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
Received on Wednesday, 2 June 2004 07:49:31 GMT

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