<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3015</bug_id>
          
          <creation_ts>2006-03-19 06:14:07 +0000</creation_ts>
          <short_desc>Patch for CSS21 profile from command line</short_desc>
          <delta_ts>2006-03-20 06:54:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Other</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.illumit.com/css-validator/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="M.-A. DARCHE">w3</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8778</commentid>
    <comment_count>0</comment_count>
    <who name="M.-A. DARCHE">w3</who>
    <bug_when>2006-03-19 06:14:07 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8779</commentid>
    <comment_count>1</comment_count>
    <who name="M.-A. DARCHE">w3</who>
    <bug_when>2006-03-19 06:21:21 +0000</bug_when>
    <thetext>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(&quot;@&quot;)) {
                    style.defaultmedium = argument;
-               } else if (argument.equals(&quot;css1&quot;) || argument.equals(&quot;css2&quot;)
-                          || argument.equals(&quot;css3&quot;) ||
+               } else if (argument.equals(&quot;css1&quot;) ||
+                          argument.equals(&quot;css2&quot;) ||
+                          argument.equals(&quot;css21&quot;) ||
+                          argument.equals(&quot;css3&quot;) ||
                           argument.equals(&quot;svg&quot;) ||
                           argument.equals(&quot;svgbasic&quot;) ||
                           argument.equals(&quot;svgtiny&quot;)) {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8785</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-03-20 06:54:25 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>