rem: if (options.useHtml )  
context: dwr.util.setValue = function(ele, val, options) {  if (val == null) val = "";  if (options == null) options = {};  if (options.useHtml )  if (options.escapeHtml) {    val = dwr.util.addEntities(val);  }  var orig = ele;  var nodes, node, i;  ele = dwr.util.byId(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) {    dwr.util._debug("setValue() can't find an element with id/name: " + orig + ".");    return;  }  // All paths now lead to some update so we highlight a change  dwr.util.highlight(ele, options);  if (dwr.util._isHTMLElement(ele, "select")) {    if (ele.type == "select-multiple" && dwr.util._isArray(val)) dwr.util._selectListItems(ele, val);    else dwr.util._selectListItem(ele, val);    return;  }  if (dwr.util._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 (dwr.util._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 = dwr.util._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/98cd9d93b9e97dab91b164218b43084a32d75255/util.js/buggy/java/org/directwebremoting/util.js