rem: element.setAttribute(attName, numString); 
add: GetCurrentEditor().setAttributeOrEquivalent(element, attName, numString, true); 
context: function ValidateNumber(inputWidget, listWidget, minVal, maxVal, element, attName, mustHaveValue, mustShowMoreSection){  if (!inputWidget)  {    gValidationError = true;    return "";  }  // Global error return value  gValidationError = false;  var maxLimit = maxVal;  var isPercent = false;  var numString = TrimString(inputWidget.value);  if (numString || mustHaveValue)  {    if (listWidget)      isPercent = (listWidget.selectedIndex == 1);    if (isPercent)      maxLimit = 100;    // This method puts up the error message    numString = ValidateNumberRange(numString, minVal, maxLimit, mustHaveValue);    if(!numString)    {      // Switch to appropriate panel for error reporting      SwitchToValidatePanel();      // or expand dialog for users of "More / Fewer" button      if ("dialog" in window && dialog &&            "MoreSection" in gDialog && gDialog.MoreSection)      {        if ( !SeeMore )          onMoreFewer();      }      // Error - shift to offending input widget      SetTextboxFocus(inputWidget);      gValidationError = true;    }    else    {      if (isPercent)        numString += "%";      if (element)        element.setAttribute(attName, numString);    }  } else if (element) {    GetCurrentEditor().removeAttributeOrEquivalent(element, attName, true)  }  return numString;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fcdcd56ac39036fa4185d5f42678c68561ce74b0/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js