- From: Jona Moß <jona.moss@web.de>
- Date: Sun, 04 Jan 2015 15:17:16 +0100
- To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>, www-validator@w3.org, P.Taylor@Rhul.Ac.Uk
Received on Sunday, 4 January 2015 14:18:16 UTC
>
> 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