2002/css-validator/org/w3c/css/util InvalidParamException.java,1.10,1.11 Messages.properties.en,1.40,1.41

Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv11348/util

Modified Files:
	InvalidParamException.java Messages.properties.en 
Log Message:
background css3 should be done... border next for completing css3 background and borders

Index: InvalidParamException.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/InvalidParamException.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- InvalidParamException.java	5 Jan 2010 13:50:00 -0000	1.10
+++ InvalidParamException.java	8 Jan 2010 21:38:01 -0000	1.11
@@ -96,8 +96,11 @@
             return "can't find the error message for " + error;
         } else {
             // replace all parameters
-            for (int i = 0; (i = str.indexOf("%s")) >= 0;) {
-                str = str.substring(0, i) + arg1 + str.substring(i + 2);
+            int i;
+            while ((i = str.indexOf("%s")) >= 0) {
+                StringBuilder sb = new StringBuilder(str.substring(0, i));
+                sb.append(arg1).append(str.substring(i + 2));
+                str = sb.toString();
                 arg1 = arg2;
             }
             return str;

Index: Messages.properties.en
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.properties.en,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- Messages.properties.en	15 Dec 2009 17:00:03 -0000	1.40
+++ Messages.properties.en	8 Jan 2010 21:38:01 -0000	1.41
@@ -376,4 +376,5 @@
 parser.invalid_id_selector: Invalid ID selector
 parser.import_not_allowed: @import are not allowed after any valid statement other than @charset and @import.
 
+error.bg_order: In the CSS3 background definition, 'bg_position' must occur before / 'bg_size' if both are present
 

Received on Friday, 8 January 2010 21:38:04 UTC