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

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