W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2012

2002/css-validator/org/w3c/css/properties/css3 CssClip.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Nov 2012 20:44:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TVTXJ-0005Lo-S2@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv20505/css3

Modified Files:
	CssClip.java 
Log Message:
typos + separator issue with last iteration

Index: CssClip.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssClip.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssClip.java	5 Nov 2012 10:36:14 -0000	1.1
+++ CssClip.java	5 Nov 2012 20:44:43 -0000	1.2
@@ -28,6 +28,7 @@
 	 * Create a new CssClip
 	 */
 	public CssClip() {
+		value = initial;
 	}
 
 	/**
@@ -61,7 +62,7 @@
 				if (inherit.equals(val)) {
 					value = inherit;
 					break;
-				} else if (auto.equals(inherit)) {
+				} else if (auto.equals(val)) {
 					value = auto;
 					break;
 				}
@@ -112,7 +113,8 @@
 			expression.next();
 			// as the spec was unclear, we allow comma or space
 			// but no mix of the two.
-			if ((op != firstop) || (op != COMMA && op != SPACE)) {
+			// special case at the end as default separator is SPACE
+			if (((op != firstop) || (op != COMMA && op != SPACE)) && !expression.end()) {
 				throw new InvalidParamException("shape-separator",
 						((new Character(op)).toString()), ac);
 			}
Received on Monday, 5 November 2012 20:44:46 UTC

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