Validator+HTML5+p+code+pre

View: New views
3 Messages — Rating Filter:   Alert me  

Validator+HTML5+p+code+pre

by Tomek Osiowy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
validator says that document is not valid (is red) when checked "by  
URI" option,
but if I check source "by direct input" option, validator says OK (is  
green).

Probably something is wrong (for validator) with:


    <p>
       <code>
          <pre>
          …
          </pre>
       </code>
    </p>



Page to check: http://tomkox.net/mac-sztuczki/kodowanie-utf-8/


--
Kind Regards,
Thomas Osiowy (TomkOx)

http://tomkox.net/




Re: Validator+HTML5+p+code+pre

by Dag-Erling Smørgrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tomek Osiowy <tomkox@...> writes:

> Hello, validator says that document is not valid (is red) when checked
> "by URI" option, but if I check source "by direct input" option,
> validator says OK (is green).
>
> Probably something is wrong (for validator) with:
> …
>
>    <p>
>       <code>
>          <pre>
>          …
>          </pre>
>       </code>
>    </p>

The pre element is a flow element, and the p and code elements can only
contain phrasing content, so this snippet is invalid.

I have no idea why the validator accepts your code when you submit it by
direct input.

DES
--
Dag-Erling Smørgrav - des@...


Re: Validator+HTML5+p+code+pre

by Ville Skyttä :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 01 November 2009, Dag-Erling Smørgrav wrote:

> I have no idea why the validator accepts your code when you submit it by
> direct input.

That's a known issue with HTML5 documents and direct input which has already
been fixed in validator's development version, and will appear in the next
validator release.  http://www.w3.org/Bugs/Public/show_bug.cgi?id=6747