Problem/Motivation

That attribute causes an HTML5 validator to mark this as an error as the alt attribute mustn't be used on input elements. See here:

Besides that the i'm not sure why the id attribute is set explicitly, however if done so it should be done using '#id' => 'id' and a drupal coding style compatible name (not camel case but use dashes between words).

Proposed resolution

Remove alt attribute and correct id attribute as proposed above.

Comments

s_leu’s picture

Status: Active » Needs review
StatusFileSize
new726 bytes

Here's a first patch that fixes this.

berdir’s picture

I'm not sure why the alt is there, but it is likely that we've built this to reflect the salsa form as much as possible, as it submits directly to salsa and maybe that is needed to work with their validation.

s_leu’s picture

Found two more issues with id attributes. Also as we discussed, there is no functionality related to that invalid alt attribute, so i'm leaving this in the patch.

berdir’s picture

Status: Needs review » Fixed

Yeah, committed.

  • Berdir committed fe82be6 on 7.x-1.x authored by s_leu
    Issue #2416547 by s_leu: Remove obsolete alt attribute on submit button...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.