rem: globalElement.setAttribute(textStr,    customTextColor); 
add:    var tmpColor = customTextColor.toLowerCase(); if (tmpColor != "windowtext") globalElement.setAttribute(textStr,    customTextColor); else globalElement.removeAttribute(textStr);  tmpColor = customBackgroundColor.toLowerCase(); if (tmpColor != "window") globalElement.setAttribute(bgcolorStr, customBackgroundColor); else globalElement.removeAttribute(bgcolorStr);  
context: function ValidateData(){  // Colors values are updated as they are picked, no validation necessary  if (dialog.DefaultColorsRadio.checked)  {    globalElement.removeAttribute(textStr);    globalElement.removeAttribute(linkStr);    globalElement.removeAttribute(vlinkStr);    globalElement.removeAttribute(alinkStr);    globalElement.removeAttribute(bgcolorStr);  }  else  {    globalElement.setAttribute(textStr,    customTextColor);    globalElement.setAttribute(linkStr,    customLinkColor);    globalElement.setAttribute(vlinkStr,   customVisitedColor);    globalElement.setAttribute(alinkStr,   customActiveColor);    globalElement.setAttribute(bgcolorStr, customBackgroundColor);  }  if (ValidateAndPreviewImage(true))  {    // A valid image may be null for no image    if (backgroundImage)      globalElement.setAttribute(backgroundStr, backgroundImage);    else      globalElement.removeAttribute(backgroundStr);      return true;  }    return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ac8f8cdc5a12cf45af0644ba140db853faaec07b/EdColorProps.js/buggy/editor/ui/dialogs/content/EdColorProps.js