W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2007

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

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 06 Aug 2007 14:06:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1II3E2-0004jC-Vs@lionel-hutz.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:24 UTC