rem: debugTable.appendChild(newTr); 
add: debugTBody.appendChild(newTr);  if ( armorysync_debugdata == 1 ) {  var messages = infoDebugMessage.getElementsByTagName('ddata'); var messagesCount = messages.length; var header = ['Arguments', 'Returns']  for ( var j = 0; j < messagesCount; j++) { var message = messages[j]; var content = _getContent(message);  var newHeadTh = document.createElement("th"); newHeadTh.setAttribute('colspan', '7'); newHeadTh.setAttribute('class', 'membersHeaderRight'); newHeadTh.appendChild(document.createTextNode(header[j]));  var newHeadTr = document.createElement("tr"); newHeadTr.appendChild(newHeadTh);  debugTable.appendChild(newHeadTr);  var newDataDiv = document.createElement("div"); newDataDiv.setAttribute('style', 'max-height:300px;max-width:100%;overflow:auto;'); newDataDiv.innerHTML = content;  var newDataTd = document.createElement("td"); newDataTd.setAttribute('colspan', '7'); newDataTd.setAttribute('class', 'membersRow1'); newDataTd.appendChild(newDataDiv);  var newDataTr = document.createElement("tr"); newDataTr.appendChild(newDataTd);  debugTBody.appendChild(newDataTr); } } 
context: function _doUpdateDebugMessages(infoDebug) {    var infoCount = infoDebug.length;    if ( infoCount > 0 ) {        var target = infoDebug[0].getAttribute('target');        var debugTable = document.getElementById(target);        if ( debugTable != null ) {            var debugTableTrs = debugTable.getElementsByTagName('tbody')[0].getElementsByTagName('tr');            var k = debugTableTrs.length - 1;            rowClass = debugTableTrs[k].getElementsByTagName('td')[0].getAttribute('class').substr(10,1);            for (var i = 0; i < infoCount; i++) {                var r = switch_row_class();                var infoDebugMessage = infoDebug[i];                var messages = infoDebugMessage.getElementsByTagName('dmesg');                var messagesCount = messages.length;                var newTr = document.createElement("tr");                for ( var j = 0; j < messagesCount; j++) {                    var message = messages[j];                    var content = _getContent(message);                    var newTd = document.createElement("td");                    var newTdClass = 'membersRow';                    if ( j == messagesCount - 1 ) {                        newTdClass += 'Right';                    }                    newTd.setAttribute( 'class', newTdClass+ r );                    var newTextNode = document.createTextNode(content);                    newTd.appendChild(newTextNode);                    newTr.appendChild(newTd);                }                debugTable.appendChild(newTr);            }        }    }}
meta: 2936	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2936/9b100f1007891a59a2c1e5a22fd5f1ac86ee99bb/armorysync.js/buggy/armorysync/js/armorysync.js