rem:  if (element.outerHTML) { element.outerHTML=text; } else { var range = element.ownerDocument.createRange(); range.selectNode(element); element.parentNode.replaceChild( range.createContextualFragment(text), element); }    
add:  wicketAjaxReplaceOuterHtml(element, text); 
context: function wicketAjaxProcessComponent(node) {    var compId = node.getAttribute("id");    var text="";    if (node.hasChildNodes()) {       text = node.firstChild.nodeValue;    }    var encoding = node.getAttribute("encoding");    if (encoding != null&&encoding!="") {        text = wicketDecode(encoding, text);    }    var element=document.getElementById(compId);       if (element==undefined||element==null) {    	if (wicketAjaxDebugEnabled()) {			var log=WicketAjaxDebug.logError;			log("Component with id [["+compId+"]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.");		}    }        if (element.outerHTML) {       element.outerHTML=text;    } else {        var range = element.ownerDocument.createRange();        range.selectNode(element);        element.parentNode.replaceChild(            range.createContextualFragment(text), element);    }            }
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/11327932dae10dd6b1a534c8c1b820e182ed36b1/wicket-ajax.js/buggy/wicket/src/java/wicket/ajax/wicket-ajax.js