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

2002/css-validator/org/w3c/css/css StyleSheetParser.java,1.20,1.21

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-0002Nu-GY@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv9103/css/css

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

Index: StyleSheetParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetParser.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- StyleSheetParser.java	21 Oct 2011 12:52:28 -0000	1.20
+++ StyleSheetParser.java	21 Oct 2011 14:14:41 -0000	1.21
@@ -285,7 +285,9 @@
 
             AtRuleMedia m = AtRuleMedia.getInstance(ac.getCssVersion());
             try {
-                addMedias(m, media, ac);
+                if (ac.getCssVersion().compareTo(CssVersion.CSS1) > 0) {
+                    addMedias(m, media, ac);
+                }
                 cssFouffa.setAtRule(m);
             } catch (org.w3c.css.util.InvalidParamException e) {
                 Errors er = new Errors();
Received on Friday, 21 October 2011 14:14:48 UTC

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