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

2002/css-validator/org/w3c/css/parser CssFouffa.java,1.39,1.40

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 13 Sep 2007 09:59:29 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IVlTt-0004EY-AS@lionel-hutz.w3.org>

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

Modified Files:
	CssFouffa.java 
Log Message:
Changing some tests so that when no profile is set, the validator acts as if the profile was "none"

Index: CssFouffa.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssFouffa.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- CssFouffa.java	10 Aug 2007 10:45:18 -0000	1.39
+++ CssFouffa.java	13 Sep 2007 09:59:27 -0000	1.40
@@ -125,7 +125,7 @@
 		}
 
 		String profile = ac.getProfile();
-		if (profile == null || profile.equals("")) {
+		if (profile == null || profile.equals("") || profile.equals("none")) {
 			profile = ac.getCssVersion();
 		}
 
@@ -240,7 +240,7 @@
 		}
 
 		String profile = ac.getProfile();
-		if (profile == null || profile.equals("")) {
+		if (profile == null || profile.equals("") || profile.equals("none")) {
 			profile = ac.getCssVersion();
 		}
 
Received on Thursday, 13 September 2007 09:59:32 GMT

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