rem: update: function(element, html) { $(element).innerHTML = html.stripScripts(); 
add: Element.Methods.update = function(element, html) { element = $(element); var tagName = element.tagName.toUpperCase(); if (['THEAD','TBODY','TR','TD'].indexOf(tagName) > -1) { var div = document.createElement('div'); switch (tagName) { case 'THEAD': case 'TBODY': div.innerHTML = '<table><tbody>' +  html.stripScripts() + '</tbody></table>'; depth = 2; break; case 'TR': div.innerHTML = '<table><tbody><tr>' +  html.stripScripts() + '</tr></tbody></table>'; depth = 3; break; case 'TD': div.innerHTML = '<table><tbody><tr><td>' +  html.stripScripts() + '</td></tr></tbody></table>'; depth = 4; } $A(element.childNodes).each(function(node){ element.removeChild(node) }); depth.times(function(){ div = div.firstChild });  $A(div.childNodes).each( function(node){ element.appendChild(node) }); } else { element.innerHTML = html.stripScripts(); } 
context:   update: function(element, html) {    $(element).innerHTML = html.stripScripts();    setTimeout(function() {html.evalScripts()}, 10);  },
meta: 6601	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6601/28b3187d07d97712c23182569a4d6fd00900b5f7/prototype.js/buggy/javascript/prototype/prototype.js