Wrong error defn: P containing DIV

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 UTC