W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

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

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 03 Apr 2013 14:02:06 +0300
Message-ID: <515C0C2E.3000603@cs.tut.fi>
To: ltimt haw <ultimateshadow@hotmail.it>
CC: "www-validator@w3.org" <www-validator@w3.org>
2013-04-02 20:04, ltimt haw 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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC