function selectButton(el, withFocus = false) {
  if (withFocus) {
    el.focus();
  }

  el.setAttribute('selected', 'true');
  el.setAttribute('aria-selected', 'true');
  el.setAttribute('tabindex', '0');
}
@param {HTMLElement} el
@param {boolean} withFocus