W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2012

2002/css-validator/org/w3c/css/css CssStyleRule.java,1.22,1.23

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Nov 2012 17:43:52 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TVQiG-0004wJ-2Q@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv18971/css

Modified Files:
	CssStyleRule.java 
Log Message:
fix from https://www.w3.org/Bugs/Public/show_bug.cgi?id=19860 thanks to  Hannes Erven

Index: CssStyleRule.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssStyleRule.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- CssStyleRule.java	25 Apr 2012 20:21:52 -0000	1.22
+++ CssStyleRule.java	5 Nov 2012 17:43:49 -0000	1.23
@@ -55,7 +55,7 @@
             ret.append(" : ");
             ret.append(property.toString());
             if (property.getImportant()) {
-                ret.append(" important");
+                ret.append(" !important");
             }
             ret.append(";\n");
         }
@@ -70,21 +70,6 @@
         return Messages.escapeString(toString());
     }
 
-    /*
-     * public String toHTML() { StringBuffer ret = new StringBuffer("<li><span
-     * class='selector'>"); if (selectors != null) { ret.append(selectors);
-     * ret.append("</span> {<ul class='vRule'>\n"); }
-     * 
-     * for (int i = 0; i < properties.size() ; i++) { CssProperty property =
-     * (CssProperty)properties.elementAt(i); ret.append("<li>");
-     * ret.append(property.getFeatureName()); ret.append(" : <span
-     * class='vPropertyValue'>"); ret.append(property.toString());
-     * ret.append("</span>");
-     * if (property.getImportant()) { ret.append(" !important"); } 
-     * ret.append(";</li>\n"); }
-     * ret.append("</ul>}</li>\n\n"); return ret.toString(); }
-     */
-
     /**
      * This method returns a part of the style sheet to be displayed
      * Some identation (\t) was necessary to maintain the correct formatting
Received on Monday, 5 November 2012 17:43:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:53 UTC