rem: var scripts = doc.getElementsByTagName('script');  for(var i = 0;i < scripts.length;i++){ var oldScript = scripts[i].parentNode.removeChild(scripts[i]); var src = oldScript.getAttribute('src'); var text = oldScript.text; var script = document.createElement('script'); script.type = 'text/javascript'; if(src != '' && src != null){ script.src = src; } else if(text != '' && text != null){ script.text = text; } head.appendChild(script); }  node.innerHTML += doc.xml; 
add: node.appendChild(document.importNode(doc.documentElement, true)); 
context:     function appendNodeContent(self, node, innerHTML) {        var head = document.getElementsByTagName('head').item(0);        var doc = self.parseXHTMLString(innerHTML);        var scripts = doc.getElementsByTagName('script');        for(var i = 0;i < scripts.length;i++){            var oldScript = scripts[i].parentNode.removeChild(scripts[i]);            var src = oldScript.getAttribute('src');            var text = oldScript.text;            var script = document.createElement('script');            script.type = 'text/javascript';            if(src != '' && src != null){                script.src = src;            }            else if(text != '' && text != null){                script.text = text;            }            head.appendChild(script);        }        node.innerHTML += doc.xml;    },
meta: 1565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1565/17381869986ef8db92feec0a438b73dccd24525b/runtime.js/buggy/nevow/runtime.js