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

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

From: Jona Moß <jona.moss@web.de>
Date: Sun, 04 Jan 2015 15:17:16 +0100
Message-ID: <54A94B6C.2060204@web.de>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>, www-validator@w3.org, P.Taylor@Rhul.Ac.Uk
>
> A <p> element was /intended/ to be in scope, but it
> was silently closed by the opening tag of the <div> element.
> the p element started with <p> was implicitly terminated by the <div> 
> tag, by HTML rules.
That explains my confusion, I didn't know this.
Now it all makes sense, and the error message is indeed correct.

Considering this example:

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

Maybe a warning could be shown at the <div> tag, because it is valid, 
but probably not intended?
The error for the </p> tag would still be shown.

Jona
Received on Sunday, 4 January 2015 14:18:16 UTC

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