lib/reporters/html.js
function text(el, contents) {
  if (el.textContent) {
    el.textContent = contents;
  } else {
    el.innerText = contents;
  }
}
function text(el, contents) {
  if (el.textContent) {
    el.textContent = contents;
  } else {
    el.innerText = contents;
  }
}
function text ( el , contents ) { if ( el . textContent ) { el . textContent = contents ; } else { el . innerText = contents ; } }
Set an element's text contents.

@param {HTMLElement} el
@param {string} contents
Set an element s text contents .