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

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

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 05 Sep 2012 12:20:25 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1T9Ean-0003rC-Ez@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv14721/css3

Modified Files:
	CssMarqueePlayCount.java 
Log Message:
force integer recognition

Index: CssMarqueePlayCount.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssMarqueePlayCount.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssMarqueePlayCount.java	5 Sep 2012 12:00:05 -0000	1.1
+++ CssMarqueePlayCount.java	5 Sep 2012 12:20:23 -0000	1.2
@@ -50,6 +50,11 @@
 		switch (val.getType()) {
 			case CssTypes.CSS_NUMBER:
 				CssNumber num = (CssNumber) val;
+				if (!num.isInteger()) {
+					throw new InvalidParamException("integer",
+							val.toString(),
+							getPropertyName(), ac);
+				}
 				if (!num.isPositive()) {
 					throw new InvalidParamException("negative-value",
 							num, getPropertyName(), ac);
Received on Wednesday, 5 September 2012 12:20:34 UTC

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