Author: vmolotkov
Date: 2008-05-19 12:50:41 -0400 (Mon, 19 May 2008)
New Revision: 8637
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
Log:
http://jira.jboss.com/jira/browse/RF-3447,
http://jira.jboss.com/jira/browse/RF-3445
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2008-05-19
16:38:11 UTC (rev 8636)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2008-05-19
16:50:41 UTC (rev 8637)
@@ -49,7 +49,6 @@
}
if (ClientUILib.isIE) {
-
var s = String();
var newOuterXml = "<table><tbody>" + src.xml +
"</tbody></table>";
var newNode = document.createElement("DIV");
@@ -60,23 +59,20 @@
target.parentNode.replaceChild(imported, target);;
return imported;
-// } else if (ClientUILib.isGecko){
-// //Mozill family
-// var theDoc = document;
-//
-// Utils.DOM._clearAttributes(target);
-// Utils.DOM.copyAttributes(target, src);
-//
-// target.innerHTML = src.innerHTML;//nnerHTML.join("");
-// return target;
+ } else if (ClientUILib.isGecko){
+ //Mozill family
+ var theDoc = document;
+
+ Utils.DOM._clearAttributes(target);
+ Utils.DOM.copyAttributes(target, src);
+
+ target.innerHTML = src.innerHTML;//nnerHTML.join("");
+ return target;
} else {
//Fall back to DOM, and cross the fingers
- //src = document.importNode(src, true);
- //target.parentNode.replaceChild(src, target);
- //return src;
- //bug
http://jira.jboss.com/jira/browse/RF-3332 is fixed
- target.outerHTML = new XMLSerializer().serializeToString(src);
- return target;
+ src = document.importNode(src, true);
+ target.parentNode.replaceChild(src, target);
+ return src;
}
}
else {