W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: Error Message Feedback - html validator will not validate if images are displayed as asp!!!

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 05 Nov 2005 16:13:14 +1100
Message-ID: <436C3F6A.2040006@lachy.id.au>
To: Nicky <nicky.t@telia.com>
CC: www-validator@w3.org

Nicky wrote:
> I do not understand why the html-validator will not accept my alt=
> for my top banners. If I remove the asp code the code is validated…

Because it's getting confused by the ASP code that it should never see.

> <div class="topBannerleft"><img
> src=<%response.write"images/topBanner1left.gif"%> alt="Top banner!"
> /></div>

That code should be processed by your server and never seen by any user 
agent.  The validator needs to see the same code that a browser would 
see, not the code your server side processes use.

> It seems that this code will not validate if I write the images with
> asp! Is this correct or is it a bug?

It's not a bug with the validator, you're not giving it the correct code.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Saturday, 5 November 2005 05:13:24 GMT

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