rem: while( parentNode.hasChildNodes() ) { parentNode.removeChild( parentNode.lastChild ); 
add: while (parentNode.childNodes[0])  { parentNode.removeChild(parentNode.childNodes[0]); 
context:       var callback = function(results) {         // specifically purge the existing items before putting in the new stuff         while( parentNode.hasChildNodes() ) {            parentNode.removeChild( parentNode.lastChild );         }         // now drop in the new xhtml result into this node         parentNode.innerHTML = results;         // rerun the dom transformer on the replacement xhtml         RSF.transformActionDomToAJAX(parentNode);      }
meta: 13	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/13/abe7eb7be4d12517cddc322e66f5a87288dc9218/rsf.js/buggy/rsf-web/templates/src/webapp/content/js/rsf.js