- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 13 Sep 2007 10:09:21 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer In directory hutz:/tmp/cvs-serv22915/org/w3c/css/parser/analyzer Modified Files: CssParser.java CssParser.jj Log Message: Changing some tests so that when no profile is set, the validator acts as if the profile was "none" Index: CssParser.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- CssParser.java 13 Aug 2007 12:38:19 -0000 1.24 +++ CssParser.java 13 Sep 2007 10:09:19 -0000 1.25 @@ -2299,7 +2299,7 @@ cl += n.image.substring(1); String profile = ac.getProfile(); - if (profile == null || profile.equals("")) { + if (profile == null || profile.equals("") || profile.equals("none")) { profile = ac.getCssVersion(); } @@ -2731,7 +2731,7 @@ n.image = n.image.substring(1); if (Character.isDigit(n.image.charAt(0))) { String profile = ac.getProfile(); - if (profile == null || profile.equals("")) { + if (profile == null || profile.equals("") || profile.equals("none")) { profile = ac.getCssVersion(); } Index: CssParser.jj =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- CssParser.jj 24 Apr 2007 11:10:49 -0000 1.20 +++ CssParser.jj 13 Sep 2007 10:09:19 -0000 1.21 @@ -1330,7 +1330,7 @@ cl += n.image.substring(1); String profile = ac.getProfile(); - if(profile == null || profile.equals("")) { + if(profile == null || profile.equals("") || profile.equals("none")) { profile = ac.getCssVersion(); } @@ -1555,7 +1555,7 @@ n.image = n.image.substring(1); if(Character.isDigit(n.image.charAt(0))) { 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:09:25 UTC