Re: [VE][HTML5] Unescaped ampersand within img src tag

2013-04-02 20:04, µltimãtê §haðøw wrote:

> URL: http://codx.altervista.org/
> line: 131, column: 145    (for instance)
> Line contents:
>
>     <img
>     src="http://codx.altervista.org/scripts/php/image.php?img=/membri/codx/grafica/articles_covers/cover_t3dc1360866428.jpg&h=96"
>     alt="Teeter 3D contesT" />
>
> Simply, that & does not have to be escaped to &amp;,

That's right, in HTML5. It's a bug in the validator that it says 
otherwise, see
http://lists.w3.org/Archives/Public/www-validator/2013Mar/0009.html
The unstable development version of the validator,
http://qa-dev.w3.org:8888/
has this bug fixed (and your document validates in it).

This may, in part, reflect the nature of HTML5 validator as experimental 
software that checks against some "specification" which is not 
identified in public and which may change at any moment without notice 
and often does.

 > it would produce errors.

Not unless you make mistakes. But it's really not necessary to use &amp; 
here.

> I'd like to add the "Valid HTML5" plate but this issue is really
> annoying.

Well, here we have yet another reason for not using such plates; for 
other reasons, see
http://www.cs.tut.fi/~jkorpela/html/validation.html#icon

The point is that your document is (right now at least) valid as per 
HTML5 CR. But if you put the "Valid HTML5" plate there the usual way, it 
is a link to the validator, so if anyone clicks on it, he will now get 
error messages and may incorrectly regard you as a liar!

Yucca

Received on Wednesday, 3 April 2013 11:02:39 UTC