- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 29 Jan 2007 05:19:09 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/servlet In directory hutz:/tmp/cvs-serv14364 Modified Files: CssValidator.java Log Message: post method was not reading/setting profile parameter properly Index: CssValidator.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/CssValidator.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- CssValidator.java 16 Dec 2006 20:22:27 -0000 1.25 +++ CssValidator.java 29 Jan 2007 05:19:07 -0000 1.26 @@ -275,10 +275,10 @@ ac.setCssVersion(profile); } else { ac.setProfile(profile); - ac.setCssVersion("css2"); + ac.setCssVersion("css21"); } } else { - ac.setCssVersion("css2"); + ac.setCssVersion("css21"); } if (Util.onDebug) { System.err.println("[DEBUG] profile is : " + ac.getCssVersion() @@ -547,6 +547,21 @@ errorReport = false; } + // CSS version + if (profile != null && !"none".equals(profile)) { + if ("css1".equals(profile) || "css2".equals(profile) + || "css21".equals(profile) + || "css3".equals(profile) || "svg".equals(profile) + || "svgbasic".equals(profile) || "svgtiny".equals(profile)) { + ac.setCssVersion(profile); + } else { + ac.setProfile(profile); + ac.setCssVersion("css21"); + } + } else { + ac.setCssVersion("css21"); + } + Util.verbose("File : " + file.getName()); parser = new StyleSheetParser();
Received on Monday, 29 January 2007 05:19:21 UTC