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

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

From: CVS User ylafon <cvsmail@w3.org>
Date: Fri, 07 Dec 2012 12:32:09 +0000
Message-Id: <E1Tgx69-0002ld-Os@roscoe.w3.org>
To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory roscoe:/tmp/cvs-serv10598/css3

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

--- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssCursor.java	2012/11/07 15:46:02	1.2
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssCursor.java	2012/12/07 12:32:09	1.3
@@ -1,4 +1,4 @@
-// $Id: CssCursor.java,v 1.2 2012/11/07 15:46:02 ylafon Exp $
+// $Id: CssCursor.java,v 1.3 2012/12/07 12:32:09 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
@@ -112,15 +112,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:11 UTC

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