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

Test case:

(I'm subscribed to this list.)


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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:35 UTC