rem: var span = document.createElementNS (NS_XHTML, HTML_SPAN); 
add: var span = htmlSpan(); 
context:     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;    }
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/528699fdf3885d6115f3361d56b254285775f6c1/venkman-static.js/buggy/extensions/venkman/resources/content/venkman-static.js