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

Re: [VE][65] New Error Message Suggestion - HELP - SUPPORT, there must be a bug !!!

From: Liam Quinn <liam@htmlhelp.com>
Date: Sat, 22 May 2004 11:29:59 -0400 (EDT)
To: Thomas Ulrich <loopy@tfh-berlin.de>
Cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0405221124200.15379-100000@localhost.localdomain>

On Sat, 22 May 2004, Thomas Ulrich wrote:

> <span class="text1">
> 
> <ul class="ul4">
[...]
> Line 80, column 15: document type does not allow element "UL" here;
> missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
> 
> <ul class="ul4">
> 
> The mentioned element is not allowed to appear in the context in which
> you've placed it; the other mentioned elements are the only ones that
> are both allowed there and can contain the element menetioned. This
> might mean that you need a containing element, or possibly that you've
> forgotten to close a previous element.
> 
> One possible cause for this message is that you have attempted to put a
> block-level element (such as "<p>" or "<table>") inside an inline
> element (such as "<a>", "<span>", or "<font>").
[...]
> YOU MUST HAVE A BUG IN YOUR CHECCKER!
> because, since when a <ul class="-any-">-tag is not allowed anymore?

"span" (an inline element) cannot contain "ul" (a block-level element).  
If you need a generic container for block-level elements, use "div"  
instead of "span".

-- 
Liam Quinn
Received on Saturday, 22 May 2004 11:28:15 GMT

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