rem:  var deckIndex = dialog.AddHTMLAttributeValueDeck.getAttribute("index"); 
add:    if (attName == "dir") valueListName = "all_dir"; else valueListName = gElement.localName.toLowerCase() + "_" + attName;   if (valueListName[0] == "_") valueListName = valueListName.slice(1);  
context: function onInputHTMLAttributeName(){  var attName = TrimString(dialog.AddHTMLAttributeNameInput.value).toLowerCase();  // Clear value widget, but prevent triggering update in tree  gUpdateTreeValue = false;  dialog.AddHTMLAttributeValueInput.value = "";  gUpdateTreeValue = true;   if (attName)  {    // Get value list for current attribute name    var valueList = gHTMLAttr[gElement.localName.toLowerCase() + "_" + attName];    // Index to which widget we were using to edit the value    var deckIndex = dialog.AddHTMLAttributeValueDeck.getAttribute("index");    var newValue = "";    var listLen = 0;    if (valueList)    {      listLen = valueList.length;      if (listLen > 0)        newValue = valueList[0];      // Note: For case where "value list" is actually just       // one (default) item, don't use menulist for that      if (listLen > 1)      {        ClearMenulist(dialog.AddHTMLAttributeValueMenulist);        if (deckIndex != "1")        {          // Switch to using editable menulist          dialog.AddHTMLAttributeValueInput = dialog.AddHTMLAttributeValueMenulist;          dialog.AddHTMLAttributeValueDeck.setAttribute("index", "1");        }        // Rebuild the list        for (var i = 0; i < listLen; i++)          AppendStringToMenulist(dialog.AddHTMLAttributeValueMenulist, valueList[i]);      }    }        if (listLen <= 1 && deckIndex != "0")    {      // No list: Use textbox for input instead      dialog.AddHTMLAttributeValueInput = dialog.AddHTMLAttributeValueTextbox;      dialog.AddHTMLAttributeValueDeck.setAttribute("index", "0");    }    // If attribute already exists in tree, use associated value,    //  else use default found above    var existingValue = GetAndSelectExistingAttributeValue(attName, "HTMLAList");    if (existingValue)      newValue = existingValue;          dialog.AddHTMLAttributeValueInput.value = newValue;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1b897a579bf4cca96195c18b8ac23c6b851d9ee7/EdAEHTMLAttributes.js/clean/editor/ui/dialogs/content/EdAEHTMLAttributes.js