2002/css-validator/org/w3c/css/parser CssPropertyFactory.java,1.21,1.22

Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv17556/org/w3c/css/parser

Modified Files:
	CssPropertyFactory.java 
Log Message:
Reverting to pre no-profile

Index: CssPropertyFactory.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssPropertyFactory.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- CssPropertyFactory.java	13 Sep 2007 10:04:16 -0000	1.21
+++ CssPropertyFactory.java	27 Sep 2007 10:08:48 -0000	1.22
@@ -197,6 +197,8 @@
 			}
 			
 			if (pfsOk.size() > 0) {
+				/*
+				// This should be uncommented when no-profile in enabled
 				if (ac.getProfile().equals("none")) {
 					// the last one should be the best one to use
 					String	pf = (String) pfsOk.get(pfsOk.size()-1),
@@ -207,9 +209,10 @@
 					ac.setCssVersion(old_pf);
 				}
 				else
-					throw new InvalidParamException("noexistence", new String[] { property, ac.getMsg().getString(ac.getCssVersion()), pfsOk.toString() }, ac);
+				 */
+				throw new InvalidParamException("noexistence", new String[] { property, ac.getMsg().getString(ac.getCssVersion()), pfsOk.toString() }, ac);
 			} else {
-					throw new InvalidParamException("noexistence-at-all", property, ac);
+				throw new InvalidParamException("noexistence-at-all", property, ac);
 			}
 		}
 

Received on Thursday, 27 September 2007 10:08:58 UTC