rem: this.outputTable.appendChild (this.outputTBody); 
add:  this.adoptNode(this.outputTBody, this.outputDocument); this.outputTable.appendChild(this.outputTBody); 
context: function ss_syncframe (){    var sessionView = this;    function tryAgain ()    {        //dd ("session view trying again...");        sessionView.syncDisplayFrame();    };    var doc = this.currentContent.ownerDocument;        try    {        this.iframe = doc.getElementById("session-output-iframe");        if ("contentDocument" in this.iframe)        {            /* iframe looks ready */            this.outputDocument = this.iframe.contentDocument;            if (this.iframe.getAttribute ("src") == "about:blank")            {                /* but it doesn't point to the right place yet */                var docURL = console.prefs["sessionView.outputWindow"];                var css = console.prefs["sessionView.currentCSS"];                docURL = docURL.replace ("$css", css);                this.iframe.setAttribute("src", docURL);            }            else            {                /* now it is, get the DOM nodes */                var win = this.currentContent.ownerWindow;                for (var f = 0; f < win.frames.length; ++f)                {                    if (win.frames[f].document == this.outputDocument)                    {                        this.outputWindow = win.frames[f];                        break;                    }                }                this.outputTable =                    this.outputDocument.getElementById("session-output-table");                this.inputElement = doc.getElementById("session-sl-input");                this.inputLabel = doc.getElementById("session-input-label");                this.hooks["set-eval-obj"]();            }        }    }    catch (ex)    {        //dd ("caught exception showing session view, will try again later.");        //dd (dumpObjectTree(ex));    }        if (!this.outputDocument || !this.outputTable || !this.inputElement)    {        setTimeout (tryAgain, 500);        return;    }    if (this.outputTable.firstChild)        this.outputTable.removeChild (this.outputTable.firstChild);    this.outputTable.appendChild (this.outputTBody);    this.scrollDown();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8c4421073408abf5cecb0086b107578e0c90a49c/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js