- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 06 Aug 2007 13:39:08 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv4650/org/w3c/css/css
Modified Files:
CssValidator.java StyleSheetCom.java
Log Message:
changing css21 to css2.1 so it's display in as it is (link when the Css is vaild)
Index: StyleSheetCom.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetCom.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- StyleSheetCom.java 30 Jul 2007 11:48:00 -0000 1.19
+++ StyleSheetCom.java 6 Aug 2007 13:39:06 -0000 1.20
@@ -159,7 +159,7 @@
style.defaultmedium = argument;
} else if (argument.equals("css1") ||
argument.equals("css2") ||
- argument.equals("css21") ||
+ argument.equals("css2.1") ||
argument.equals("css3") ||
argument.equals("svg") ||
argument.equals("svgbasic") ||
@@ -185,10 +185,10 @@
style.ac.setCssVersion(style.cssversion);
if (style.profile != null) {
style.ac.setProfile(style.profile);
- style.ac.setCssVersion("css21");
+ style.ac.setCssVersion("css2.1");
}
if (style.cssversion == null && style.ac.getCssVersion() == null) {
- style.ac.setCssVersion("css21");
+ style.ac.setCssVersion("css2.1");
}
} catch (Exception e) {
/* System.out.println( "Usage: validator " +
Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssValidator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CssValidator.java 24 Apr 2007 11:14:22 -0000 1.5
+++ CssValidator.java 6 Aug 2007 13:39:06 -0000 1.6
@@ -57,7 +57,7 @@
*/
public CssValidator() {
params = new Hashtable();
- params.put("profile", "css21");
+ params.put("profile", "css2.1");
params.put("medium", "all");
params.put("output", "text");
params.put("lang", "en");
@@ -115,16 +115,16 @@
// CSS version to use
String profile = (String) style.params.get("profile");
if (profile != null && !"none".equals(profile)) {
- if ("css1".equals(profile) || "css2".equals(profile) || "css21".equals(profile)
+ if ("css1".equals(profile) || "css2".equals(profile) || "css2.1".equals(profile)
|| "css3".equals(profile) || "svg".equals(profile)
|| "svgbasic".equals(profile) || "svgtiny".equals(profile)) {
style.ac.setCssVersion(profile);
} else {
style.ac.setProfile(profile);
- style.ac.setCssVersion("css21");
+ style.ac.setCssVersion("css2.1");
}
} else {
- style.ac.setCssVersion("css21");
+ style.ac.setCssVersion("css2.1");
}
// medium to use
Received on Monday, 6 August 2007 13:39:10 UTC