CVS 2002/css-validator/org/w3c/css/properties/css2

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

Modified Files:
	CssCursor.java 
Log Message:
enforce that the last ident is unique

--- /sources/public/2002/css-validator/org/w3c/css/properties/css2/CssCursor.java	2012/10/19 10:05:52	1.1
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css2/CssCursor.java	2012/12/07 12:32:09	1.2
@@ -1,4 +1,4 @@
-// $Id: CssCursor.java,v 1.1 2012/10/19 10:05:52 ylafon Exp $
+// $Id: CssCursor.java,v 1.2 2012/12/07 12:32:09 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
@@ -90,15 +90,17 @@
 						value = inherit;
 						break;
 					}
-					lastIdent = getMatchingIdent((CssIdent) val);
-					// not recognized... exit
 					if (lastIdent == null) {
-						throw new InvalidParamException("value",
-								val.toString(),
-								getPropertyName(), ac);
+						lastIdent = getMatchingIdent((CssIdent) val);
+						// not recognized... exit
+						if (lastIdent == null) {
+							throw new InvalidParamException("value",
+									val.toString(),
+									getPropertyName(), ac);
+						}
+						values.add(val);
+						break;
 					}
-					values.add(val);
-					break;
 				default:
 					throw new InvalidParamException("value",
 							val.toString(),

Received on Friday, 7 December 2012 12:32:10 UTC