W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2007

2002/css-validator/org/w3c/css/css StyleSheetCom.java,1.21,1.22

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 13 Sep 2007 09:35:49 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IVl70-00013B-0X@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv3993/org/w3c/css/css

Modified Files:
	StyleSheetCom.java 
Log Message:
Getting the default css version through config file

Index: StyleSheetCom.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetCom.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- StyleSheetCom.java	9 Aug 2007 09:29:02 -0000	1.21
+++ StyleSheetCom.java	13 Sep 2007 09:35:46 -0000	1.22
@@ -18,6 +18,7 @@
 import org.w3c.css.parser.CssFouffa;
 import org.w3c.css.parser.CssSelectors;
 import org.w3c.css.parser.CssStyle;
+import org.w3c.css.properties.PropertiesLoader;
 import org.w3c.css.properties.css1.CssProperty;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.HTTPURL;
@@ -185,10 +186,10 @@
 		style.ac.setCssVersion(style.cssversion);
 	    if (style.profile != null) {
 		style.ac.setProfile(style.profile);
-		style.ac.setCssVersion("css21");
+		style.ac.setCssVersion(PropertiesLoader.config.getProperty("defaultProfile"));
 	    }
 	    if (style.cssversion == null && style.ac.getCssVersion() == null) {
-		style.ac.setCssVersion("css21");
+		style.ac.setCssVersion(PropertiesLoader.config.getProperty("defaultProfile"));
 	    }
 	} catch (Exception e) {
 	    /* System.out.println( "Usage: validator " +
Received on Thursday, 13 September 2007 09:35:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:59 GMT