[Bug 5508] </p> flagged as not required when there is a matching <p>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5508


ot@w3.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from ot@w3.org  2008-04-17 12:08 -------
The example document at the given URI has many errors but not the one you
mention. 

In HTML some end tags can be omitted, and some constructs will be interpreted
as implicitly closing them.
e.g
<p>some content<div></div></p>
will be interpreted, in HTML, where a <p>cannot contain a <div> but can be
implicitely closed, as:
<p>some content</p><div></div></p>
You can see why the validator will see an issue with the </p>

If you don't want this (implicit closing), you can use XHTML where all end tags
are required.

Received on Thursday, 17 April 2008 12:09:08 UTC