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 3015 - Patch for CSS21 profile from command line
Summary: Patch for CSS21 profile from command line
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://www.illumit.com/css-validator/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-19 06:14 UTC by M.-A. DARCHE
Modified: 2006-03-20 06:54 UTC (History)
0 users

See Also:


Attachments

Description M.-A. DARCHE 2006-03-19 06:14:07 UTC
As described on http://www.illumit.com/css-validator/ when the CSS validator is run from the command line (that is without using it through a servlet) there is no css21 option available.

The fix is easy.
Comment 1 M.-A. DARCHE 2006-03-19 06:21:21 UTC
For some reason the Bugzilla bugs when I want to add the patch attachment. So here is the patch against org/w3c/css/css/StyleSheetCom.java :

--- StyleSheetCom.java  2006-03-19 07:07:43.000000000 +0100
+++ StyleSheetCom.java.new      2006-03-19 07:07:29.000000000 +0100
@@ -174,8 +174,10 @@
                        printAvailableFormat(new PrintWriter(System.err));
                } else if (argument.startsWith("@")) {
                    style.defaultmedium = argument;
-               } else if (argument.equals("css1") || argument.equals("css2")
-                          || argument.equals("css3") ||
+               } else if (argument.equals("css1") ||
+                          argument.equals("css2") ||
+                          argument.equals("css21") ||
+                          argument.equals("css3") ||
                           argument.equals("svg") ||
                           argument.equals("svgbasic") ||
                           argument.equals("svgtiny")) {
Comment 2 Olivier Thereaux 2006-03-20 06:54:25 UTC
Thanks Marc-Aurèle, this must have been forgotten when creating the 2.1 profile. 

I committed the patch, and also modified the file to document the commandline option.