- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 01 Oct 2012 14:09:51 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv25292
Modified Files:
CssNumber.java
Log Message:
integer check should be syntax-based (so presence of '.' instead of value-based
Index: CssNumber.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssNumber.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- CssNumber.java 28 Sep 2012 18:37:56 -0000 1.18
+++ CssNumber.java 1 Oct 2012 14:09:49 -0000 1.19
@@ -54,12 +54,14 @@
*/
public void set(String s, ApplContext ac) {
value = new BigDecimal(s);
- try {
+ isInt = (s.indexOf('.') < 0);
+/* CSS integers are not value-based integers.
+ try {
value.toBigIntegerExact();
isInt = true;
} catch (ArithmeticException e) {
isInt = false;
- }
+ } */
this.ac = ac;
}
Received on Monday, 1 October 2012 14:10:04 UTC