[kupu-checkins] r39424 - kupu/trunk/kupu/common
duncan at codespeak.net
duncan at codespeak.net
Mon Feb 26 13:56:58 CET 2007
Author: duncan
Date: Mon Feb 26 13:56:50 2007
New Revision: 39424
Modified:
kupu/trunk/kupu/common/sarissa.js
Log:
IE importNode not working for text nodes
Modified: kupu/trunk/kupu/common/sarissa.js
==============================================================================
--- kupu/trunk/kupu/common/sarissa.js (original)
+++ kupu/trunk/kupu/common/sarissa.js Mon Feb 26 13:56:50 2007
@@ -430,6 +430,9 @@
* @returns the imported node for further use
*/
document.importNode = function(oNode, bChildren){
+ if (oNode.nodeName=='#text') {
+ return document.createTextElement(oNode.data);
+ }
var tmp = document.createElement("div");
if(bChildren){
tmp.innerHTML = oNode.xml ? oNode.xml : oNode.outerHTML;
More information about the kupu-checkins
mailing list