W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2008

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

From: <bugzilla@farnsworth.w3.org>
Date: Thu, 17 Apr 2008 12:08:37 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1JmSur-0004Og-RJ@farnsworth.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:27 UTC