- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Oct 2011 07:12:18 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv6302/org/w3c/css/parser
Modified Files:
CssPropertyFactory.java
Log Message:
initial keyword in CSS3 is now checked to be unique, some class reorg, adjustment of column-span to match the last multicol doc
Index: CssPropertyFactory.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssPropertyFactory.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- CssPropertyFactory.java 17 Sep 2011 06:02:26 -0000 1.28
+++ CssPropertyFactory.java 5 Oct 2011 07:12:16 -0000 1.29
@@ -217,10 +217,11 @@
}
}
- CssIdent initial = new CssIdent("initial");
+ CssIdent initial = CssIdent.getIdent("initial");
try {
- if (expression.getValue().equals(initial) && (ac.getCssVersion() == CssVersion.CSS3)) {
+ if ((ac.getCssVersion().compareTo(CssVersion.CSS3) >= 0) && (expression.getCount() == 1)
+ && expression.getValue().equals(initial)) {
// create an instance of your property class
Class[] parametersType = {};
Constructor constructor = Class.forName(classname).getConstructor(parametersType);
Received on Wednesday, 5 October 2011 07:12:20 UTC