rem: for (var i = 0; i <= d.childNodes.length; i++) { 
add: var l = d.childNodes.length; for (var i = 0; i < l; i++) { 
context: function __start(tree) {  // save here  var __saved_fieldvals = [];  var inputFields = document.getElementsByTagName("input");  for (var i = 0; i < inputFields.length; i++) {      var current = inputFields[i];     __saved_fieldvals.push({'field' : current.id, 'value' : current.value});  }  var d = document.documentElement;  for (var i = 0; i <= d.childNodes.length; i++) {     d.removeChild( d.childNodes[0] );  }  d.appendChild( tree[0] );  // restore here  for (var i = 0; i < __saved_fieldvals.length; i++) {      var current = __saved_fieldvals[i];     var elem = document.getElementById(current.field);     if (elem) {     elem.value = current.value; }  }    // hmm.  __focus();  __alert(time() - start_time + ' milliseconds');}
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3248/c508a604f1a1504098e30a31b840d53bdb860a13/jslib.js/clean/jslib.js