Dag-Erling Smørgrav | 1 Nov 2009 18:14
Picon
Gravatar

Re: Validator+HTML5+p+code+pre

Tomek Osiowy <tomkox <at> tomkox.net> 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 <at> des.no

Ville Skyttä | 2 Nov 2009 08:24
Picon
Picon
Favicon

Re: Validator+HTML5+p+code+pre

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


Gmane