W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Wrong error defn: P containing DIV

From: Saila, Craig <Craig.Saila@bgminteractive.com>
Date: Wed, 27 Nov 2002 15:31:54 -0500
Message-ID: <523ED78FF1F87A44A40907C74F83CBC20333BBAE@mail.bgm.globeinteractive.com>
To: <www-validator@w3.org>

In HTML 4.01 documents (strict or transitional), where a <p> contains a
<div>, the wrong error definition appears. 

Instead of:
Line [x], column [x]:  document type does not allow element "div" here;
missing one of "object", "ins", "del", "map", "button" start-tag

This is displayed:
Line [x], column [x]: end tag for element "P" which is not open

With a XHTML DOCTYPE (strict or transitional), the correct message
appears.

Test case:
<http://www.saila.com/attic/sandbox/p_contains_div.html>

(I'm subscribed to this list.)

-- 
Cheers,

Craig Saila
------------------------------------------
craig@saila.com : http://www.saila.com/
------------------------------------------
Received on Thursday, 28 November 2002 10:13:49 GMT

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