Re: ok, when is valid code not valid code? when the w3c supplied it.

Dear Barry,

On Feb 20, 2004, at 8:17, Barry Kelly wrote:
> 37:   <img style="border:0;width:88px;height:31px"
> src=http://jigsaw.w3.org/css-validator/images/vcss alt="Valid CSS!">the
> above is the code to link to the css validator.  It is not Xhtml 
> according
> to that validator.so what is it?  the error makes no sense.Discuss?

While we all appreciate the effort you make to produce valid code and 
check it with the validators, I feel inclined to remind you that 
however upset you might be, feedback to this mailing-list is subject to 
a few guidelines, among them:
- the fact that you are supposed to check your problem has not been 
addressed ten times already (it has)
- courtesy and a calm tone are advised.

Onto the actual issue...

The CSS validator gave you a snippet of *HTML* code (note the 
emphasis), which happens to be valid when included in most flavors of 
HTML. You are actually using XHTML, a recent version of HTML which, as 
you certainly know since you are doing your best to produce valid code, 
needs all tags to be closed, even for empty elements such as img.

You were therefore supposed to modify the code sample to fit XHTML, i.e
  <img style="border:0;width:88px;height:31px"
src=http://jigsaw.w3.org/css-validator/images/vcss alt="Valid CSS!" />

Should the CSS validator have given you the XHTML code sample? Since 
the CSS validator validates CSS, not (X)HTML, it is not supposed to 
know which kind of document you will the paste this code into...

I copied the CSS validator's list, which is the appropriate list to 
discuss the matter. The www-validator list where you sent your original 
message is for the Markup validator (and other tools), but there is no 
problem with this one...

I'd suggest we modify org/w3c/css/css/html.properties.* where this 
message seems to be taken from, but that brings us back to the 
localized files quagmire... Anyone on the www-validator-css having an 
idea on how to proceed?

Thank you.
-- 
olivier

Received on Thursday, 19 February 2004 18:50:35 UTC