- 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>
Received on Thursday, 29 September 2011 07:28:31 UTC
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?
Thanks,
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