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

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