W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2011

Vendor Extensions warnings and the command line interface patch

From: Lenahan, Peter <Peter_Lenahan@ibi.com>
Date: Wed, 28 Sep 2011 13:21:14 -0400
To: "www-validator-css@w3.org" <www-validator-css@w3.org>, "ylafon@w3.org" <ylafon@w3.org>
Message-ID: <9892EC6224DBC54598164D1F77721D751DDBE4AD3A@IBIUSMBSB.ibi.com>
The latest version of the CSS Validator source code contains a switch for Vendor Extensions from the servlet code.
However the command line interface was not updated to include the feature.
I added a few lines in the attached file:   css-validator/org/w3c/css/css/CssValidator.java  version 1.13

These were basically the same as in the servlet, this enables the vendor extension feature from command line interface
No other changes were needed to get the feature to work.

Can you update the file css-validator/org/w3c/css/css/CssValidator.java to include this change?

Peter Lenahan

Here are my changes

Set an initial value to default as false

        params.put("vextwarning", "false");

provide help text

            System.out.println("\t-vextwarning true, --vextwarning=true");
            System.out.println("\t\tTreat Vendor Extensions as warnings");
            System.out.println("\t\tPossible values for vextwarning are true or false " +
                    "(default, is false");

parse the value

        style.ac.setTreatVendorExtensionsAsWarnings(((String) style.params.get("vextwarning")).equalsIgnoreCase("true"));

Received on Thursday, 29 September 2011 07:28:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:48 UTC