rem:   ClearHTMLInputWidgets(); 
context: function BuildHTMLAttributeNameList(){  ClearMenulist(gDialog.AddHTMLAttributeNameInput);    var elementName = gElement.localName.toLowerCase();  var attNames = gHTMLAttr[elementName];  if (attNames && attNames.length)  {    var menuitem;    for (var i = 0; i < attNames.length; i++)    {      var name = attNames[i];      var limitFirstChar;      if (name == "_core")      {        // Signal to append the common 'core' attributes.        for (var j = 0; j < gCoreHTMLAttr.length; j++)        {          name = gCoreHTMLAttr[j];          // "limitFirstChar" is the only filtering rule used for core attributes as of 8-20-01          // Add more rules if necessary                    limitFirstChar = name.indexOf("^") >= 0;          if (limitFirstChar)          {            menuitem = AppendStringToMenulist(gDialog.AddHTMLAttributeNameInput, name.replace(/\^/g, ""));            menuitem.setAttribute("limitFirstChar", "true");          }          else            AppendStringToMenulist(gDialog.AddHTMLAttributeNameInput, name);        }      }      else if (name == "-")      {        // Signal for separator        var popup = gDialog.AddHTMLAttributeNameInput.firstChild;        if (popup)        {          var sep = document.createElementNS(XUL_NS, "menuseparator");          if (sep)            popup.appendChild(sep);        }              }      else      {        // Get information about value filtering        var forceOneChar = name.indexOf("!") >= 0;        var forceInteger = name.indexOf("#") >= 0;        var forceSignedInteger = name.indexOf("+") >= 0;        var forceIntOrPercent = name.indexOf("%") >= 0;        limitFirstChar = name.indexOf("\^") >= 0;        //var required = name.indexOf("$") >= 0;        // Strip flag characters        name = name.replace(/[!^#%$+]/g, "");        menuitem = AppendStringToMenulist(gDialog.AddHTMLAttributeNameInput, name);        if (menuitem)        {          // Signify "required" attributes by special style          //TODO: Don't do this until next version, when we add          //      explanatory text and an 'Autofill Required Attributes' button          //if (required)          //  menuitem.setAttribute("class", "menuitem-highlight-1");          // Set flags to filter value input          if (forceOneChar)            menuitem.setAttribute("forceOneChar","true");          if (limitFirstChar)            menuitem.setAttribute("limitFirstChar", "true");          if (forceInteger)            menuitem.setAttribute("forceInteger", "true");          if (forceSignedInteger)            menuitem.setAttribute("forceSignedInteger", "true");          if (forceIntOrPercent)            menuitem.setAttribute("forceIntOrPercent", "true");        }      }    }  }  // Always start with empty input fields  ClearHTMLInputWidgets();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/515fee5cbbc1a7ba81de8a054e4c79098563f0d1/EdAEHTMLAttributes.js/buggy/editor/ui/dialogs/content/EdAEHTMLAttributes.js