W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2008

Re: Non-standard CSS-Validator Image Link

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Fri, 14 Mar 2008 08:36:42 +0000
Message-ID: <47DA391A.8080508@googlemail.com>
To: Jens Schwartz <jensschwartz@yahoo.de>
CC: www-validator-css@w3.org

Jens Schwartz wrote:

> This code is not valid to the W3C HTML specification. You might
> recognize the end of the IMG tag as non-valid: ..." />

When I validate:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fl.yimg.com%2Fus.js.yimg.com%2Flib%2Feu%2Fvg%2Fvg_old_20080311.css&profile=css21&usermedium=all&warning=1&lang=en

I'm offered "the XHTML you could use to add this icon to your Web page". 
In XHTML, as opposed to HTML 4.01, /> is valid. The output goes on to 
add: "(close the img tag with > instead of /> if using HTML <= 4.01)". 
Don't you see that in the output when validating your project, and if 
not, what's the URI of your project or a test-case that shows the problem?

--
Benjamin Hawkes-Lewis
Received on Friday, 14 March 2008 08:37:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:20 GMT