rem: try { ele.innerHTML = val; return; } catch (ex) { return; } 
add: ele.innerHTML = val; return; 
context: function setValue(id, val){    if (val == null)    {        val = "";    }    var ele = document.getElementById(id);    if (ele == null)    {        alert("Element id: "+id+" not found.");        return;    }    if (isHTMLSelectElement(ele))    {        // search through the values        var found  = false;        for (var i = 0; i < ele.options.length; i++)        {            if (ele.options[i].value == val)            {                ele.options[i].selected = true;                found = true;            }            else            {                ele.options[i].selected = false;            }        }        // If that fails then try searching through the visible text        if (found)        {            return;        }        for (var i = 0; i < ele.options.length; i++)        {            if (ele.options[i].text == val)            {                ele.options[i].selected = true;                break;            }        }        return;    }    if (isHTMLInputElement(ele))    {        switch (ele.type)        {        case "check-box":        case "radio":            ele.checked = (val == true);            return;        case "hidden":        case "text":        case "textarea":            ele.value = val;            return;        default:            alert("Not sure how to setValue on a input element of type " + ele.type);            ele.value = val;            return;        }    }    if (isHTMLElement(ele))    {        try        {            ele.innerHTML = val;            return;        }        catch (ex)        {            return;        }    }    alert("Not sure how to setValue on a " + ele);    ele.innerHTML = val;}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/fc82149bb2e68e97d207aae04866b3cc689ddcee/util.js/clean/java/uk/ltd/getahead/dwr/util.js