rem:    document.body.appendChild(tempDiv);  
context: Wicket.replaceOuterHtmlIE = function(element, text) {									if (element.tagName == "SCRIPT") {		// we need to get the javascript content, so we create an invalid DOM structure,		// (that is necessary for IE to let us see the innerHTML of the script tag			var tempDiv = document.createElement("div");		tempDiv.innerHTML = "<table>" + text + "</table>";				var script = tempDiv.childNodes[0].childNodes[0].innerHTML;				element.outerHtml = text;		eval(script);		return;	}  		var parent = element.parentNode;	var tn = element.tagName;					var tempDiv = document.createElement("div");	var tempParent;		// array for javascripts that were in the text	var scripts = new Array();							if (tn != 'TBODY' && tn != 'TR' && tn != "TD" && tn != "THEAD") {				// in case the element is not any of these																document.body.appendChild(tempDiv);																	// this is not exactly nice, but we need to get invalid markup inside innerHTML,		// because otherwise IE just swallows the <script> tags (sometimes) 		tempDiv.innerHTML = '<table style="display:none">' + text + '</table>';								// now copy the script tags to array (needed later for script execution)		var s = tempDiv.getElementsByTagName("script");												for (var i = 0; i < s.length; ++i) {						scripts.push(s[i]);		}										tempDiv.innerHTML = "";								// now use regular div so that we won't mess the DOM		tempDiv.innerHTML = '<div style="display:none">' + text + '</div>'; 		// set the outer <div> as parent		tempParent = tempDiv.childNodes[0];				tempParent.parentNode.removeChild(tempParent);															} else {			// same trick as with before, this time we need a div to to create invalid markup		// (otherwise we wouldn't be able to get the script tags)		tempDiv.innerHTML = '<div style="display:none">' + text + '</div>';			// now copy the script tags to array (needed later for script execution)		var s = tempDiv.getElementsByTagName("script");								for (var i = 0; i < s.length; ++i) {			scripts.push(s[i]);		}						tempDiv.innerHTML = "";				// hack to get around the fact that IE doesn't allow to replace table elements		tempDiv.innerHTML = '<table style="display: none">' + text + '</table>';				// get the parent element of new elements		tempParent = tempDiv.getElementsByTagName(tn).item(0).parentNode;						}		// place all newly created elements before the old element		while(tempParent.childNodes.length > 0) {		var tempElement = tempParent.childNodes[0];		tempParent.removeChild(tempElement);		parent.insertBefore(tempElement, element);		tempElement = null;	}    // remove the original element	parent.removeChild(element);	element.outerHTML = "";	element = "";	tempDiv.outerHTML = "";	parent = null;	tempDiv = null;	tempParent = null;      			for (i = 0; i < scripts.length; ++i) {		Wicket.Head.addJavascripts(scripts[i]); 	}									}
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1204/f845c313a881c5cffa2ef3b861d10da7d8efd810/wicket-ajax.js/buggy/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js