- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Nov 2012 20:44: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-serv20505/css3 Modified Files: CssClip.java Log Message: typos + separator issue with last iteration Index: CssClip.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssClip.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CssClip.java 5 Nov 2012 10:36:14 -0000 1.1 +++ CssClip.java 5 Nov 2012 20:44:43 -0000 1.2 @@ -28,6 +28,7 @@ * Create a new CssClip */ public CssClip() { + value = initial; } /** @@ -61,7 +62,7 @@ if (inherit.equals(val)) { value = inherit; break; - } else if (auto.equals(inherit)) { + } else if (auto.equals(val)) { value = auto; break; } @@ -112,7 +113,8 @@ expression.next(); // as the spec was unclear, we allow comma or space // but no mix of the two. - if ((op != firstop) || (op != COMMA && op != SPACE)) { + // special case at the end as default separator is SPACE + if (((op != firstop) || (op != COMMA && op != SPACE)) && !expression.end()) { throw new InvalidParamException("shape-separator", ((new Character(op)).toString()), ac); }
Received on Monday, 5 November 2012 20:44:46 UTC