Author: pyaschenko
Date: 2009-03-24 05:45:17 -0400 (Tue, 24 Mar 2009)
New Revision: 13133
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
https://jira.jboss.org/jira/browse/RF-6154
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2009-03-24 09:24:56 UTC
(rev 13132)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2009-03-24 09:45:17 UTC
(rev 13133)
@@ -379,11 +379,13 @@
var anchor = oldnode.parentNode;
if(!window.opera && !A4J.AJAX.isWebkitBreakingAmps() &&
oldnode.outerHTML && !oldnode.tagName.match( /(tbody|thead|tfoot|tr|th|td)/i ) ){
LOG.debug("Replace content of node by outerHTML()");
- try {
- oldnode.innerHTML = "";
- } catch(e){
- LOG.error("Error to clear node content by innerHTML
"+e.message);
- Sarissa.clearChildNodes(oldnode);
+ if (!Sarissa._SARISSA_IS_IE ||
oldnode.tagName.toLowerCase()!="table") {
+ try {
+ oldnode.innerHTML = "";
+ } catch(e){
+ LOG.error("Error to clear node content by innerHTML
"+e.message);
+ Sarissa.clearChildNodes(oldnode);
+ }
}
oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
} else {