- From: CVS User ylafon <cvsmail@w3.org>
- Date: Fri, 07 Dec 2012 12:32:09 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory roscoe:/tmp/cvs-serv10598/css21
Modified Files:
CssCursor.java
Log Message:
enforce that the last ident is unique
--- /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssCursor.java 2012/10/19 10:05:53 1.1
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css21/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:53 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:11 UTC