- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 21 Oct 2011 14:14:43 +0000
- To: www-validator-cvs@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