rem: function writeBufferLabel(n) {  var theTable = document.getElementById(g_cq_bufferlist_id);  if (theTable.childNodes.length < 1) {  theTable.appendChild(document.createElement('tbody')); } if (theTable) { var theTableBody = theTable.firstChild; var theRow = theTable.rows[n]; if (! theRow) {  theRow = document.createElement('tr'); theTableBody.appendChild(theRow); }  while (theRow.hasChildNodes()) { theRow.removeChild(theRow.firstChild); } var theCell = document.createElement('td'); while (theCell.hasChildNodes()) { theCell.removeChild(theCell.firstChild); } theRow.appendChild(theCell);  if (g_cq_buffer_current == n) { theCell.setAttribute('bgcolor', '#aaddff'); theCell.style.background = '#aaddff'; } theCell.appendChild(getLabel(n)); } 
add: function writeBufferLabel(parentNode, n) { if (! parentNode) return null;   var rowNode = document.createElement('tr'); var cellNode = document.createElement('td');  cellNode.appendChild(getLabel(n));  rowNode.appendChild(cellNode); parentNode.appendChild(rowNode); 
context: function writeBufferLabel(n) {    // labels are stored in a table, one per row    var theTable = document.getElementById(g_cq_bufferlist_id);    // make sure the table has a tbody    if (theTable.childNodes.length < 1) {        // create an explicit tbody for the DOM (Mozilla needs this)        theTable.appendChild(document.createElement('tbody'));    }    if (theTable) {        var theTableBody = theTable.firstChild;        var theRow = theTable.rows[n];        if (! theRow) {            //alert("writeBufferLabel: appending at " + n);            theRow = document.createElement('tr');            theTableBody.appendChild(theRow);        }        //alert("writeBufferLabel("+n+"): was=" + theCell);        while (theRow.hasChildNodes()) {            theRow.removeChild(theRow.firstChild);        }        var theCell = document.createElement('td');        while (theCell.hasChildNodes()) {            theCell.removeChild(theCell.firstChild);        }        theRow.appendChild(theCell);        // highlight the        if (g_cq_buffer_current == n) {            theCell.setAttribute('bgcolor', '#aaddff'); // gecko            theCell.style.background = '#aaddff'; // ie        }        theCell.appendChild(getLabel(n));    } // if theTable} // writeBufferLabel
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js