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

Possible functionality improvement?

From: David Branford <bran0096@flinders.edu.au>
Date: Thu, 08 Jun 2006 13:52:58 +0930
Message-ID: <4487A622.1060606@flinders.edu.au>
To: www-validator@w3.org
Hi all,

When using the W3C validator recently at http://validator.w3.org/ on my 
page (doctype XHTML 1.0 Transitional - <!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) I received 
the error:

Error /Line 82 column 93/: document type does not allow element "div" 
here; missing one of "object", "applet", "map", "iframe", "button", 
"ins", "del" start-tag.

|...m menu-item-green submenu2-item"><div*>*How to Write Aims &amp; Learning</div><

....which I don't think is correct; because I have in my stylesheet:

..submenu2-item {
	display: block;

Thus, instead of putting a block element (<div>) inside an inline element (<a>) which would indeed be erroneous, I think I have put a block
element inside a block element... is there anything wrong with my logic here?


<e-mail: david@davidbranford.net>
Received on Thursday, 8 June 2006 13:54:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:56 UTC