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

>
> 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