2002/css-validator/org/w3c/css/parser CssSelectors.java,1.19,1.20

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

Modified Files:
	CssSelectors.java 
Log Message:
Adding the name of the pseudo class when there is an error so that the %s is replaced
@see bug 4284 [1]

[1] : http://www.w3.org/Bugs/Public/show_bug.cgi?id=4284

Index: CssSelectors.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssSelectors.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- CssSelectors.java	19 Apr 2006 11:28:05 -0000	1.19
+++ CssSelectors.java	6 Aug 2007 14:06:24 -0000	1.20
@@ -243,7 +243,7 @@
 				    new PseudoFunctionNthChild(pseudo, param));
 			}
 			catch(NumberFormatException e) {
-			    throw new InvalidParamException("pseudo", ac);
+			    throw new InvalidParamException("pseudo", ":" + pseudo, ac);
 			}
 			return;
 		    }
@@ -254,7 +254,7 @@
 					    pseudo, param));
 			}
 			catch(NumberFormatException e) {
-			    throw new InvalidParamException("pseudo", ac);
+			    throw new InvalidParamException("pseudo", ":" + pseudo, ac);
 			}
 			return;
 		    }
@@ -265,7 +265,7 @@
 					    pseudo, param));
 			}
 			catch(NumberFormatException e) {
-			    throw new InvalidParamException("pseudo", ac);
+			    throw new InvalidParamException("pseudo", ":" + pseudo, ac);
 			}
 			return;
 		    }
@@ -276,13 +276,13 @@
 					    pseudo, param));
 			}
 			catch(NumberFormatException e) {
-			    throw new InvalidParamException("pseudo", ac);
+			    throw new InvalidParamException("pseudo", ":" + pseudo, ac);
 			}
 			return;
 		    }
 		}
 	    }
-	    throw new InvalidParamException("pseudo", ac);
+	    throw new InvalidParamException("pseudo", ":" + pseudo, ac);
 	}
     }
 

Received on Monday, 6 August 2007 14:06:31 UTC