W3C home > Mailing lists > Public > www-validator@w3.org > September 2011

Re: Bad validator error

From: Joe Java <cop3252@yahoo.com>
Date: Fri, 23 Sep 2011 08:18:28 -0700 (PDT)
Message-ID: <1316791108.75732.YahooMailNeo@web34402.mail.mud.yahoo.com>
To: "Philip TAYLOR \(Webmaster, Ret'd\)" <P.Taylor@Rhul.Ac.Uk>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Then the error message is bad and should state
that a UL tag may not be within a P tag.  


Why is test2.html a valid HTML5 document?



----- Original Message -----
From: "Philip TAYLOR (Webmaster, Ret'd)" <P.Taylor@Rhul.Ac.Uk>
To: Joe Java <cop3252@yahoo.com>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Sent: Friday, September 23, 2011 11:11 AM
Subject: Re: Bad validator error

It would help if you could cite the exact part
of the HTML 5 Draft Specification that states
that a <UL> may be nested in a <P> element.

Philip Taylor
--------
Joe Java wrote:
> The following page :
> 
> https://eyeasme.com/Joe/test.html
> 
> with this source code:
> <!DOCTYPE html>
> <html>
>   <head lang="en">
>     <meta charset="UTF-8" />
>     <title> Color test </title>
>    <body>
>      <p>
>        <ul>
>          <li> red </li>
>        </ul>
>      </p>
>    </body>
> </html>
> 
> 
> gives this error when validated:
> Line 11, Column 9: No p element in scope but a p end tag seen.
> 
> This error message goes away if a "p" tag is inserted immediately
> before line 11 (the closing "p" tag).  
> 
> See:
> https://eyeasme.com/Joe/test2.html
> 
> This is wrong.  Please fix the validator.
> 

Received on Friday, 23 September 2011 15:18:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:48 GMT