Re: Incorrect Error messages

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 UTC