Bug 285374. (Av1) Set background color as a property, not as an attribute. r=neil.
authorSerge Gautherie <sgautherie.bz@free.fr>
Fri, 17 Feb 2012 02:50:40 +0100
changeset 89854 7e1855af184c04bf588c066c3a30f477fb03ed34
parent 89853 78fde7e54d9275bacdae0d20536adf573d26e6a6
child 89855 2271cb92cc0558a980ff0b6c976d4b5ebb6d688a
push idunknown
push userunknown
push dateunknown
reviewersneil
bugs285374
milestone13.0a1
Bug 285374. (Av1) Set background color as a property, not as an attribute. r=neil.
toolkit/content/widgets/colorpicker.xml
--- a/toolkit/content/widgets/colorpicker.xml
+++ b/toolkit/content/widgets/colorpicker.xml
@@ -440,17 +440,17 @@
       <property name="open"
                 onget="return this.getAttribute('open') == 'true'"
                 onset="this.showPopup();"/>
       <property name="color">
         <getter><![CDATA[
           return this.getAttribute("color");
         ]]></getter>
         <setter><![CDATA[
-          this.mColorBox.setAttribute("style", "background-color: " + val);
+          this.mColorBox.style.backgroundColor = val;
           this.setAttribute("color", val);
           return val;
         ]]></setter>
       </property>
       
       <method name="initialize">
         <body><![CDATA[
           this.mColorBox = document.getAnonymousElementByAttribute(this, "anonid", "colorbox");