W3C home > Mailing lists > Public > www-validator@w3.org > February 2003

Re: div inside div?

From: Liam Quinn <liam@htmlhelp.com>
Date: Wed, 26 Feb 2003 19:25:10 -0500 (EST)
To: Jacek Kopecky <jacek@systinet.com>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0302261923380.22400-100000@localhost.localdomain>

On 27 Feb 2003, Jacek Kopecky wrote:

> Hi, I'm trying to get my pages, http://jacek.cz/ , to be as
> standards-compliant as possible, so I'm using the validator. My page
> doesn't validate, though, and I don't see why not. The error message is
> not helpful very much - it says
> 
> Line 26, column 20:  document type does not allow element "DIV" here;
> missing one of "OBJECT", "MAP", "BUTTON" start-tag 
>   <div style="noblock"><img class="quickmenuruler" src="img/reddot.png" width="100
>                       ^
> 
> I tried to look at the HTML 4.01
> [http://www.w3.org/TR/1999/REC-html401-19991224/sgml/dtd.html] but it
> seems div inside div (after span) is legal.
> 
> Is there a problem in my page or is it a validator bug?

You have an open "span" element from line 18.  "span" can't contain "div".

(I agree that the validator error message is bad.)

-- 
Liam Quinn
Received on Wednesday, 26 February 2003 19:25:07 GMT

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