Bootstrap's bootstrap_button (theme_button override) replaces " with "" which will run into a simpletest bug with login forms #1481148: Simpletest does not consider form items of type 'button' for submitting forms

If you find your simpletest's not being able to login, this is likely the cause

/**
 * Overrides theme_button().
 */
function bootstrap_button($variables) {
..
 // This line break adds inherent margin between multiple buttons.
  return '<button' . drupal_attributes($element['#attributes']) . '>' . $text . "</button>\n";

..
}

Versus https://api.drupal.org/api/drupal/includes!form.inc/function/theme_button/7

function theme_button($variables) {
...
  return '<input' . drupal_attributes($element['#attributes']) . ' />';
}

Comments

markhalliwell’s picture

Status: Active » Closed (won't fix)

This isn't a bug. The <button> element is proper HTML5.

dgtlmoon’s picture

<button> sure is HTML5! in any case, this issue is worth reporting incase other people are running SimpleTest/D7 , not really sure what todo about this, it's not bootstrap's fault obviously, but worth noting

dgtlmoon’s picture

Category: Bug report » Support request
Status: Closed (won't fix) » Closed (works as designed)

Changing to 'works as designed'