2002/css-validator/org/w3c/css/selectors SelectorsList.java,1.2,1.3

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

Modified Files:
	SelectorsList.java 
Log Message:
Changing the last (2nd) parameter for pseudo-element error message, so CSS 2.1 is displayed instead of css21 or even %s

Index: SelectorsList.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/SelectorsList.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- SelectorsList.java	14 Sep 2005 15:15:32 -0000	1.2
+++ SelectorsList.java	13 Aug 2007 12:38:22 -0000	1.3
@@ -117,7 +117,7 @@
 	if(selectors.size() > 0) {
 	    Selector last = (Selector) selectors.get(selectors.size() - 1);
 	    if(last instanceof PseudoElementSelector) {
-		throw new InvalidParamException("pseudo-element", selector, ac);
+		throw new InvalidParamException("pseudo-element", selector, ac.getMsg().getString(ac.getCssVersion()), ac);
 	    }
 	}
 	selectors.add(selector);

Received on Monday, 13 August 2007 12:38:28 UTC