W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/selectors SelectorsList.java,1.5,1.6

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 25 Feb 2009 20:44:52 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LcQce-0000sk-59@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/selectors
In directory hutz:/tmp/cvs-serv3171/org/w3c/css/selectors

Modified Files:
	SelectorsList.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: SelectorsList.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/SelectorsList.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- SelectorsList.java	12 Feb 2009 10:32:53 -0000	1.5
+++ SelectorsList.java	25 Feb 2009 20:44:50 -0000	1.6
@@ -11,6 +11,7 @@
 import org.w3c.css.selectors.attributes.AttributeExact;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.InvalidParamException;
+import org.w3c.css.util.Messages;
 
 /**
  * SelectorsList<br />
@@ -266,6 +267,10 @@
 	return (stringrep != null);
     }
 
+    public String toStringEscaped() {
+	return Messages.escapeString(toString());
+    }
+
     /**
      * Sets the specificity of this SelectorsList
      * @param specificity the specificity yo set
Received on Wednesday, 25 February 2009 20:45:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT