- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Sep 2012 12:21:45 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv16490/css3 Modified Files: CssTabSize.java Log Message: force integer recognition Index: CssTabSize.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTabSize.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CssTabSize.java 31 Aug 2012 20:36:57 -0000 1.2 +++ CssTabSize.java 5 Sep 2012 12:21:43 -0000 1.3 @@ -43,6 +43,11 @@ switch (val.getType()) { case CssTypes.CSS_NUMBER: CssNumber number = (CssNumber) val; + if (!number.isInteger()) { + throw new InvalidParamException("integer", + val.toString(), + getPropertyName(), ac); + } if (!number.isPositive()) { throw new InvalidParamException("negative-value", number, getPropertyName(), ac);
Received on Wednesday, 5 September 2012 12:21:49 UTC