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

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css2
In directory hutz:/tmp/cvs-serv20505/css2

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/css2/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:13 -0000	1.1
+++ CssClip.java	5 Nov 2012 20:44:43 -0000	1.2
@@ -61,7 +61,7 @@
 				if (inherit.equals(val)) {
 					value = inherit;
 					break;
-				} else if (auto.equals(inherit)) {
+				} else if (auto.equals(val)) {
 					value = auto;
 					break;
 				}
@@ -70,6 +70,7 @@
 				throw new InvalidParamException("value", val,
 						getPropertyName(), ac);
 		}
+		expression.next();
 	}
 
 	public CssClip(ApplContext ac, CssExpression expression)
@@ -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