rem: return document.createTextNode(oNode.data); } var tmp = document.createElement("div");  var pNode = (oNode.nodeName.toLowerCase()=='tbody')? oNode.parentNode: oNode; if(bChildren){ tmp.innerHTML = pNode.xml ? pNode.xml : pNode.outerHTML; }else{ tmp.innerHTML = pNode.xml ? pNode.cloneNode(false).xml : pNode.cloneNode(false).outerHTML; 
add: return document.createTextElement(oNode.data); } else { if(oNode.nodeName == "tbody" || oNode.nodeName == "tr"){ tmp = document.createElement("table"); } else if(oNode.nodeName == "td"){ tmp = document.createElement("tr"); } else if(oNode.nodeName == "option"){ tmp = document.createElement("select"); } else{ tmp = document.createElement("div"); }; if(bChildren){ tmp.innerHTML = oNode.xml ? oNode.xml : oNode.outerHTML; }else{ tmp.innerHTML = oNode.xml ? oNode.cloneNode(false).xml : oNode.cloneNode(false).outerHTML; }; return tmp.getElementsByTagName("*")[0]; 
context:         document.importNode = function(oNode, bChildren){            if (oNode.nodeName=='#text') {		return document.createTextNode(oNode.data);	    }	    var tmp = document.createElement("div");	    var pNode = (oNode.nodeName.toLowerCase()=='tbody')? oNode.parentNode: oNode;            if(bChildren){                tmp.innerHTML = pNode.xml ? pNode.xml : pNode.outerHTML;            }else{                tmp.innerHTML = pNode.xml ? pNode.cloneNode(false).xml : pNode.cloneNode(false).outerHTML;            };            return tmp.getElementsByTagName(oNode.nodeName.replace(/^[^:]*:/,''))[0];        };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/115f0f76b62f068a0a01cf24012fd0efa0dae587/sarissa.js/clean/kupu/common/sarissa.js