rem:  UpdateExistingAttribute(gDialog.AddHTMLAttributeNameInput.value, value, "HTMLAList"); 
add:   if ( !UpdateExistingAttribute(name, value, "HTMLAList" ) && value) AddTreeItem(name, value, "HTMLAList", HTMLAttrs); 
context: function onInputHTMLAttributeValue(){  if (!gUpdateTreeValue)    return;  // Trim spaces only from left since we must allow spaces within the string  //  (we always reset the input field's value below)  var value = TrimStringLeft(gDialog.AddHTMLAttributeValueInput.value);  if (value)  {    // Do value filtering based on type of attribute    // (Do not use "LimitStringLength()" and "forceInteger()"    //  to avoid multiple reseting of input's value and flickering)    var selectedItem = gDialog.AddHTMLAttributeNameInput.selectedItem;    if (selectedItem)    {      if ( selectedItem.getAttribute("forceOneChar") == "true" &&           value.length > 1 )        value = value.slice(0, 1);      if ( selectedItem.getAttribute("forceIntOrPercent") == "true" )      {        // Allow integer with optional "%" as last character        var percent = TrimStringRight(value).slice(-1);        value = value.replace(/\D+/g,"");        if (percent == "%")          value += percent;      }      else if ( selectedItem.getAttribute("forceInteger") == "true" )      {        value = value.replace(/\D+/g,"");      }      else if ( selectedItem.getAttribute("forceSignedInteger") == "true" )      {        // Allow integer with optional "+" or "-" as first character        var sign = value[0];        value = value.replace(/\D+/g,"");        if (sign == "+" || sign == "-")          value = sign + value;      }            // Special case attributes       if (selectedItem.getAttribute("limitFirstChar") == "true")      {        // Limit first character to letter, and all others to         //  letters, numbers, and a few others        value = value.replace(/^[^a-zA-Z\u0080-\uFFFF]/, "").replace(/[^a-zA-Z0-9_\.\-\:\u0080-\uFFFF]+/g,'');      }      // Update once only if it changed      if (value != gDialog.AddHTMLAttributeValueInput.value)        gDialog.AddHTMLAttributeValueInput.value = value;    }  }  // Always update value in the tree list  UpdateExistingAttribute(gDialog.AddHTMLAttributeNameInput.value, value, "HTMLAList");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/172a3a201ec20b239b3e04055ff4319664ae970e/EdAEHTMLAttributes.js/buggy/editor/ui/dialogs/content/EdAEHTMLAttributes.js