- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 13 Sep 2007 10:04:56 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv20163/org/w3c/css/parser
Modified Files:
CssSelectors.java
Log Message:
Changing some tests so that when no profile is set, the validator acts as if the profile was "none"
Index: CssSelectors.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssSelectors.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- CssSelectors.java 6 Aug 2007 14:06:24 -0000 1.20
+++ CssSelectors.java 13 Sep 2007 10:04:54 -0000 1.21
@@ -180,7 +180,7 @@
}
String profile = ac.getProfile();
- if(profile == null || profile.equals("")) {
+ if(profile == null || profile.equals("") || profile.equals("none")) {
profile = ac.getCssVersion();
}
@@ -214,7 +214,7 @@
public void setPseudoFun(String pseudo, String param)
throws InvalidParamException {
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 10:05:07 UTC