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

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