B2G/gecko/dom/tests/js/tables/changeCell.js
// Change the text of the first table cell
Change the text of the first table cell
Change the text of the first table cell
function changeCell(table)
{
  var body = findTableBody(table)
  var row = body.firstChild
  var cell = row.firstChild
  var text = cell.firstChild
  text.append(" NEW TEXT")
}
function changeCell ( table ) { var body = findTableBody ( table ) var row = body . firstChild var cell = row . firstChild var text = cell . firstChild text . append ( " NEW TEXT" ) }
Change the text of the first table cell
Change the text of the first table cell
// Get a table body // The table body's first child is a table row // The row's first child is a table cell // Get the cell's text // Append some text