rem: name = TrimString(item.firstChild.firstChild.getAttribute("label")); var value = TrimString(item.firstChild.lastChild.firstChild.value);  element.setAttribute(name,value); 
add: gElement.setAttribute( GetTreeItemAttributeStr(item), GetTreeItemValueStr(item) ); 
context: function UpdateHTMLAttributes(){  dump("===============[ Setting and Updating HTML ]===============\n");  var HTMLAList = document.getElementById("HTMLAList");  var name;  var i;  // remove removed attributes  for( i = 0; i < HTMLRAttrs.length; i++ )  {    name = HTMLRAttrs[i];    if(element.getAttribute(name))      element.removeAttribute(name);    else continue; // doesn't exist, so don't bother removing it.  }  // Set added attributes  for( i = 0; i < HTMLAList.childNodes.length; i++)  {    var item = HTMLAList.childNodes[i];    name = TrimString(item.firstChild.firstChild.getAttribute("label"));    var value = TrimString(item.firstChild.lastChild.firstChild.value);    // set the attribute    element.setAttribute(name,value);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/67127d21aab9da81c954dbf83b744db869f5c4b0/EdAEHTMLAttributes.js/buggy/editor/ui/dialogs/content/EdAEHTMLAttributes.js