rem: if (!tag) tag = "A"; var hrefs = getElementsByTagName(tag); var href, attribute, tag, cleanedtext;  for (var i=0; i<hrefs.length; i++) { href = hrefs[i]; attribute = href.getAttribute("TITLE"); tag = document.createElement("SPAN"); tag.innerHTML=attribute; cleanedtext = tag.innerHTML; hrefs[i].setAttribute("TITLE", cleanedtext, false); } 
add: if (!tagname) tagname = "a"; var tags = getElementsByTagName(tagname); for (var i=0; i<tags.length; i++) cleanSingleTitle(tags[i]); 
context: function cleanTitles(tag){    if (!tag)      tag = "A";    var hrefs = getElementsByTagName(tag);    var href, attribute, tag, cleanedtext;        for (var i=0; i<hrefs.length; i++)    {      href = hrefs[i];      attribute = href.getAttribute("TITLE");      tag = document.createElement("SPAN");      tag.innerHTML=attribute;      cleanedtext = tag.innerHTML;      hrefs[i].setAttribute("TITLE", cleanedtext, false);    }}
meta: 4474	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4474/df5cd9dbcb322add38f217074be963c47b5b7b75/html.js/buggy/htdocs/html.js