W3C home > Mailing lists > Public > www-validator@w3.org > May 2012

Re: Incorrect Error messages

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 01 May 2012 17:00:22 +0300
Message-ID: <4F9FEC76.8000900@cs.tut.fi>
To: davidms@uwclub.net
CC: www-validator@w3.org
2012-05-01 16:24, David Swindlehurst wrote:

> The following 2 Error messages are generated by the Validator from this
> page <http://www.lancsarchsoc.org.uk/programmelisting2012.html>.
>
>  1. Error /Line 51, Column 148/: No p element in scope but a p end tag
>     seen.

The error messages are correct

> You will notice that, in reality, each p end tag DOES have a p start
> tag. For Line 51 the start tag is at Line 41, column 242.

The p element started on line 41 is terminated on line 43 by the <ul> 
tag. A p element must not, by the syntax rules, contain a block element 
like ul. The syntax allows end tag omission for the p element, so the 
end is implied here; this can be described by saying that a <ul> tag 
implies </p> before it, when there is an open p element. This leaves the 
end tag </p> on line 51 homeless.

To fix this, remove the stray end tags. You may add end tags where the p 
elements are actually ended, for clarity.

Yucca
Received on Tuesday, 1 May 2012 14:00:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 1 May 2012 14:00:59 GMT