- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 12 Feb 2009 21:26:38 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/selectors/pseudofunctions In directory hutz:/tmp/cvs-serv1130/org/w3c/css/selectors/pseudofunctions Modified Files: PseudoFunctionNthChild.java PseudoFunctionNthLastChild.java PseudoFunctionNthLastOfType.java PseudoFunctionNthOfType.java Log Message: pseudo-function handling, per CSS3 selectors rules (note that some construction forbidden by the text are ok according to the grammar, so extra checks are needed) Initial support of namespaces. Index: PseudoFunctionNthLastChild.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/pseudofunctions/PseudoFunctionNthLastChild.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PseudoFunctionNthLastChild.java 14 Sep 2005 15:15:32 -0000 1.2 +++ PseudoFunctionNthLastChild.java 12 Feb 2009 21:26:36 -0000 1.3 @@ -12,13 +12,8 @@ */ public class PseudoFunctionNthLastChild extends PseudoFunctionSelector { - public PseudoFunctionNthLastChild(String name, Integer n) { - setName(name); - setParam(n); - } - public PseudoFunctionNthLastChild(String name, String value) { - this(name, new Integer(value)); + setName(name); + setParam(value); } - } Index: PseudoFunctionNthOfType.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/pseudofunctions/PseudoFunctionNthOfType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PseudoFunctionNthOfType.java 14 Sep 2005 15:15:32 -0000 1.2 +++ PseudoFunctionNthOfType.java 12 Feb 2009 21:26:36 -0000 1.3 @@ -12,13 +12,9 @@ */ public class PseudoFunctionNthOfType extends PseudoFunctionSelector { - public PseudoFunctionNthOfType(String name, Integer n) { - setName(name); - setParam(n); - } - public PseudoFunctionNthOfType(String name, String value) { - this(name, new Integer(value)); + setName(name); + setParam(value); } } Index: PseudoFunctionNthChild.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/pseudofunctions/PseudoFunctionNthChild.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PseudoFunctionNthChild.java 14 Sep 2005 15:15:32 -0000 1.2 +++ PseudoFunctionNthChild.java 12 Feb 2009 21:26:36 -0000 1.3 @@ -12,13 +12,9 @@ */ public class PseudoFunctionNthChild extends PseudoFunctionSelector { - public PseudoFunctionNthChild(String name, Integer n) { - setName(name); - setParam(n); - } - public PseudoFunctionNthChild(String name, String value) { - this(name, new Integer(value)); + setName(name); + setParam(value); } } Index: PseudoFunctionNthLastOfType.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/pseudofunctions/PseudoFunctionNthLastOfType.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PseudoFunctionNthLastOfType.java 14 Sep 2005 15:15:32 -0000 1.2 +++ PseudoFunctionNthLastOfType.java 12 Feb 2009 21:26:36 -0000 1.3 @@ -12,13 +12,9 @@ */ public class PseudoFunctionNthLastOfType extends PseudoFunctionSelector { - public PseudoFunctionNthLastOfType(String name, Integer n) { - setName(name); - setParam(n); - } - public PseudoFunctionNthLastOfType(String name, String value) { - this(name, new Integer(value)); + setName(name); + setParam(value); } }
Received on Thursday, 12 February 2009 21:26:48 UTC