rem:    if (gElement.attributes.getNamedItem(name)) 
add: if (gElement.hasAttribute(name)) 
context: function UpdateHTMLAttributes(){  var HTMLAList = document.getElementById("HTMLAList");  var i;  // remove removed attributes  for (i = 0; i < HTMLRAttrs.length; i++)  {    var name = HTMLRAttrs[i];    // We can't use getAttribute to figure out if attribute already    //  exists for attributes that don't require a value    // This gets the attribute NODE from the attributes NamedNodeMap    if (gElement.attributes.getNamedItem(name))      doRemoveAttribute(name);  }  // Set added or changed attributes  for( i = 0; i < HTMLAList.childNodes.length; i++)  {    var item = HTMLAList.childNodes[i];    doSetAttribute( GetTreeItemAttributeStr(item), GetTreeItemValueStr(item));  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/839fd1768cc3e3d4445e01452908b6c9e7a601c3/EdAEHTMLAttributes.js/buggy/editor/ui/dialogs/content/EdAEHTMLAttributes.js