- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 25 Feb 2009 20:44:52 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1 In directory hutz:/tmp/cvs-serv3171/org/w3c/css/properties/css1 Modified Files: CssProperty.java Log Message: Fixes http://www.w3.org/Bugs/Public/show_bug.cgi?id=5770 Added accessors to get X/HTML escaped versions of differents String (like URL representation, selectors, warning messages, etc). The markup-based output were modified accordingly. Index: CssProperty.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssProperty.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CssProperty.java 25 Mar 2008 18:43:30 -0000 1.4 +++ CssProperty.java 25 Feb 2009 20:44:49 -0000 1.5 @@ -11,6 +11,7 @@ import org.w3c.css.parser.CssSelectors; import org.w3c.css.parser.CssStyle; import org.w3c.css.util.ApplContext; +import org.w3c.css.util.Messages; import org.w3c.css.values.CssIdent; /** @@ -129,6 +130,12 @@ public abstract String getPropertyName(); /** + * Returns the name of this property IN LOWER CASE. escaped + */ + public String getPropertyNameEscaped() { + return Messages.escapeString(getPropertyName()); + } + /** * Compares two properties for equality. * * @param value The other property. @@ -160,6 +167,10 @@ */ public abstract String toString(); + public String getEscaped() { + return Messages.escapeString(toString()); + } + /** * Set this property to be important. * Overrides this method for a macro
Received on Wednesday, 25 February 2009 20:45:07 UTC