W3C home > Mailing lists > Public > www-validator@w3.org > January 2015

[VE][html5] Confusing error message with div inside p

From: Jona Moß <jona.moss@web.de>
Date: Sun, 04 Jan 2015 00:18:15 +0100
Message-ID: <54A878B7.3060600@web.de>
To: www-validator@w3.org
Hello,

when you validate this code:

    <p>
       <div>foo</div>
    </p>


You will get the following error message: " No p element in scope but a 
p end tag seen."

I find this message very confusing as there /is/ a p element in scope. A 
less confusing message could be "invalid div element inside p element".


Thanks
Jona Moß
Received on Sunday, 4 January 2015 03:27:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:12 UTC