B2G/gecko/dom/tests/js/tables/changeCaption.js
// Change the table's caption
Change the table's caption
Change the table ' s caption
function changeCaption(table)
{
  var caption = table.firstChild
  var text = caption.firstChild
  text.append(" NEW TEXT")
}
function changeCaption ( table ) { var caption = table . firstChild var text = caption . firstChild text . append ( " NEW TEXT" ) }
Change the table's caption
Change the table ' s caption
// Get the first element. This is the caption (maybe). We really should // check... // Get the caption text // Append some text