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

2002/css-validator/org/w3c/css/css CssValidator.java,1.11,1.12 StyleSheetGenerator.java,1.31,1.32

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 17 Sep 2011 06:02:28 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1R4nyu-0006OB-MH@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv24491/css/css

Modified Files:
	CssValidator.java StyleSheetGenerator.java 
Log Message:
better handling of versions and profile, error/warning processing now replacing all %s, error reporting do no longer have duplicate values

Index: StyleSheetGenerator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGenerator.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- StyleSheetGenerator.java	14 Sep 2011 16:31:49 -0000	1.31
+++ StyleSheetGenerator.java	17 Sep 2011 06:02:26 -0000	1.32
@@ -379,7 +379,7 @@
         String name = error.getProperty();
         String ret;
         if ((name != null) && (getURLProperty(name) != null) &&
-                PropertiesLoader.getProfile(ac.getCssVersionString()).containsKey(name)) {
+                PropertiesLoader.getProfile(ac.getPropertyKey()).containsKey(name)) {
             //we add a link information
             // we check if the property doesn't exist in this css version
             ht_error.put("link_before_parse_error",
@@ -422,7 +422,7 @@
                 ht_error.put("span_value_parse_error",
                         queryReplace(error.getSkippedString()));
             } else if (error.getExp() != null) {
-                ret += " : " + queryReplace(error.getExp().toStringFromStart());
+                ret += " : ";// + queryReplace(error.getExp().toStringFromStart());
                 ht_error.put("span_class_parse_error", "exp");
                 ht_error.put("span_value_parse_error",
                         queryReplace(error.getExp().toString()));

Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssValidator.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CssValidator.java	14 Sep 2011 16:31:49 -0000	1.11
+++ CssValidator.java	17 Sep 2011 06:02:26 -0000	1.12
@@ -10,8 +10,8 @@
 package org.w3c.css.css;
 
 import org.w3c.css.parser.CssSelectors;
-import org.w3c.css.properties.PropertiesLoader;
 import org.w3c.css.util.ApplContext;
+import org.w3c.css.util.CssVersion;
 import org.w3c.css.util.HTTPURL;
 import org.w3c.css.util.Util;
 import org.w3c.tools.resources.ProtocolException;
@@ -53,7 +53,7 @@
      */
     public CssValidator() {
         params = new HashMap<String, String>();
-        params.put("profile", PropertiesLoader.config.getProperty("defaultProfile"));
+        params.put("profile", CssVersion.getDefault().toString());
         params.put("medium", "all");
         params.put("output", "text");
         params.put("lang", "en");
Received on Saturday, 17 September 2011 06:02:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:46 UTC