diff --git a/layout/html/base/src/nsHTMLTagContent.cpp b/layout/html/base/src/nsHTMLTagContent.cpp
index 8809077c97eb..53daf3dd7c96 100644
--- a/layout/html/base/src/nsHTMLTagContent.cpp
+++ b/layout/html/base/src/nsHTMLTagContent.cpp
@@ -221,8 +221,7 @@ void nsHTMLTagContent::SetAttribute(nsIAtom* aAttribute,
nsIStyleRule* rule;
rv = css->ParseDeclarations(aValue, nsnull, rule);
if ((NS_OK == rv) && (nsnull != rule)) {
- printf("XXX STYLE= discarded: ");
- rule->List();
+ mAttributes->SetAttribute(aAttribute, nsHTMLValue(rule));
NS_RELEASE(rule);
}
NS_RELEASE(css);