W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2011

2002/css-validator/org/w3c/css/parser CssPropertyFactory.java,1.31,1.32

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 21 Oct 2011 14:14:43 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1RHFrv-0002O5-MD@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv9103/css/parser

Modified Files:
	CssPropertyFactory.java 
Log Message:
fix for CSS1 and media handling (bugfix of the previous rework on @media support

Index: CssPropertyFactory.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssPropertyFactory.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- CssPropertyFactory.java	21 Oct 2011 12:52:29 -0000	1.31
+++ CssPropertyFactory.java	21 Oct 2011 14:14:41 -0000	1.32
@@ -253,7 +253,7 @@
         if (atRule instanceof AtRuleMedia) {
             className = PropertiesLoader.getProfile(ac.getPropertyKey()).getProperty(property);
             // a list of media has been specified
-            if (className != null && !media.equals("all")) {
+            if (className != null && media != null && !media.equals("all")) {
                 String propMedia = PropertiesLoader.mediaProperties.getProperty(property);
                 ArrayList<String> list = getMediaList(media);
                 for (String medium : list) {
Received on Friday, 21 October 2011 14:14:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:47 UTC