This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 859 - "add this code to your page" should have x/html warning when validating css-only docs
Summary: "add this code to your page" should have x/html warning when validating css-o...
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: XHTML1.0 (show other bugs)
Version: CSS Validator
Hardware: PC All
: P4 enhancement
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 17:51 UTC by Fran
Modified: 2004-10-22 01:56 UTC (History)
0 users

See Also:


Attachments

Description Fran 2004-09-01 17:51:32 UTC
When a css file is checked and found correct, the displayed html to add a "W3C
CSS" image to the page using the correct CSS is not valid xhtml 1.0

I suppose that as it is valid html, users should just be warned to properly
close the tag when using xhtml 1.0 rather than correcting the current html
script to make it xhtml 1.0
Comment 1 Olivier Thereaux 2004-10-22 01:56:46 UTC
The relevant code is somewhere around
	http://dev.w3.org/cvsweb/2002/css-validator/org/w3c/css/css/
and as far as I can tell, the current code ties the "default" (as in non html or xhtml specific) message to 
either of the specific ones (that is, ties to [x]html.properties.lang).
	CssParser.java: *  StyleSheetGenerator.setDocumentBase("html.properties");

I am patching both html.properties and xhtml.properties to include a warning about "the other".