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

2002/css-validator/org/w3c/css/media/css21 AtRuleMedia.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 08 Nov 2011 17:07:03 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1RNp8Z-00051g-M2@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/media/css21
In directory hutz:/tmp/cvs-serv19266/media/css21

Modified Files:
	AtRuleMedia.java 
Log Message:
derecated media should be only a warning

Index: AtRuleMedia.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/media/css21/AtRuleMedia.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- AtRuleMedia.java	21 Oct 2011 01:49:07 -0000	1.1
+++ AtRuleMedia.java	8 Nov 2011 17:07:01 -0000	1.2
@@ -8,7 +8,6 @@
 import org.w3c.css.media.Media;
 import org.w3c.css.media.MediaFeature;
 import org.w3c.css.parser.AtRule;
-import org.w3c.css.parser.CssError;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.InvalidParamException;
 
@@ -48,9 +47,8 @@
         }
         for (String s : deprecatedMedia) {
             if (medium.equals(s)) {
-                // we add an error, but won't stop the processing
-                InvalidParamException ipe = new InvalidParamException("deprecatedmedia", medium, ac);
-                ac.getFrame().addError(new CssError(ipe));
+                // we add a warning as it has been deprecated
+                ac.getFrame().addWarning("deprecatedmedia", medium);
                 allMedia.add(new Media(s));
                 return this;
             }
Received on Tuesday, 8 November 2011 17:07:06 UTC

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