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

[Bug 19860] New: CssStyleRule.toString() incorrect "important" output [WITH PATCH]

From: <bugzilla@jessica.w3.org>
Date: Mon, 05 Nov 2012 14:46:19 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-19860-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19860

          Priority: P2
            Bug ID: 19860
          Assignee: dave.null@w3.org
           Summary: CssStyleRule.toString() incorrect "important" output
                    [WITH PATCH]
        QA Contact: www-validator-cvs@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: hannes+w3cbugs@erven.at
          Hardware: All
            Status: NEW
           Version: CSS Validator
         Component: Parser
           Product: CSSValidator

CssStyleRule.toString() appends "important" to an important value, while the
standard requires it to be "!important" (exclamation mark missing).

== Patch ==

Index: CssStyleRule.java
===================================================================
--- CssStyleRule.java
+++ CssStyleRule.java    (working copy)
@@ -55,7 +55,7 @@
             ret.append(" : ");
             ret.append(property.toString());
             if (property.getImportant()) {
-                ret.append(" important");
+                ret.append(" !important");
             }
             ret.append(";\n");
         }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 5 November 2012 14:46:22 UTC

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