rem: if (nodes.length >= 1) { ele = nodes.item(0); } 
add: if (nodes.length >= 1) ele = nodes.item(0); 
context: DWRUtil.setValue = function(ele, val, options) {  if (val == null) val = "";  if (options != null) {    if (options.escapeHtml) {      val = val.replace(/&/, "&amp;");      val = val.replace(/'/, "&apos;");      val = val.replace(/</, "&lt;");      val = val.replace(/>/, "&gt;");    }  }  var orig = ele;  var nodes, node, i;  ele = $(ele);  // We can work with names and need to sometimes for radio buttons  if (ele == null) {    nodes = document.getElementsByName(orig);    if (nodes.length >= 1) {      ele = nodes.item(0);    }  }  if (ele == null) {    DWRUtil.debug("setValue() can't find an element with id/name: " + orig + ".");    return;  }  if (DWRUtil._isHTMLElement(ele, "select")) {    if (ele.type == "select-multiple" && DWRUtil._isArray(val)) {      DWRUtil._selectListItems(ele, val);    }    else {      DWRUtil._selectListItem(ele, val);    }    return;  }  if (DWRUtil._isHTMLElement(ele, "input")) {    if (ele.type == "radio") {      // Some browsers match names when looking for ids, so check names anyway.      if (nodes == null) nodes = document.getElementsByName(orig);      if (nodes != null && nodes.length > 1) {        for (i = 0; i < nodes.length; i++) {          node = nodes.item(i);          if (node.type == "radio") {            node.checked = (node.value == val);          }        }      }      else {        ele.checked = (val == true);      }    }    else if (ele.type == "checkbox") {      ele.checked = val;    }    else {      ele.value = val;    }    return;  }  if (DWRUtil._isHTMLElement(ele, "textarea")) {    ele.value = val;    return;  }  // If the value to be set is a DOM object then we try importing the node  // rather than serializing it out  if (val.nodeType) {    if (val.nodeType == 9 /*Node.DOCUMENT_NODE*/) {      val = val.documentElement;    }    val = DWRUtil._importNode(ele.ownerDocument, val, true);    ele.appendChild(val);    return;  }  // Fall back to innerHTML  ele.innerHTML = val;};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5698e064fd7cfccfcf96b459e1b1024bad78f808/util.js/clean/java/org/directwebremoting/util.js