rem: msgData.appendChild(stringToMsg(message)); 
add: if (typeof message == "string") msgData.appendChild(stringToMsg(message)); else msgData.appendChild(message); 
context: function display(message, msgtype){    if (typeof message == "undefined")        throw BadMojo(ERR_DISPLAY_ARG1);        function setAttribs (obj, c, attrs)    {        for (var a in attrs)            obj.setAttribute (a, attrs[a]);        obj.setAttribute("class", c);        obj.setAttribute("msg-type", msgtype);    }    function stringToMsg (message)    {        var ary  = message.split("\n");        var span = document.createElementNS (NS_XHTML, HTML_SPAN);        for (var l in ary)        {            var wordParts =                 splitLongWord (ary[l], console.prefs["output.wordbreak.length"]);            for (var i in wordParts)            {                span.appendChild (document.createTextNode (wordParts[i]));                var img = document.createElementNS (NS_XHTML, HTML_IMG);                span.appendChild (img);            }                                span.appendChild (document.createElementNS (NS_XHTML, HTML_BR));        }        return span;    }    var msgRow = document.createElementNS(NS_XHTML, HTML_TR);    setAttribs(msgRow, "msg");    var msgData = document.createElementNS(NS_XHTML, HTML_TD);    setAttribs(msgData, "msg-data");    msgData.appendChild(stringToMsg(message));    msgRow.appendChild(msgData);    console._outputElement.appendChild(msgRow);    console.scrollDown();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/528699fdf3885d6115f3361d56b254285775f6c1/venkman-static.js/buggy/extensions/venkman/resources/content/venkman-static.js