Vendor Extensions warnings and the command line interface patch
"Lenahan, Peter" <[email protected]>
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <[email protected]> |
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"));
CssValidator.java
(application/octet-stream, 8.9 KB) - not displayed