Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

HTML validation: submit button duplicate type attribute #175

@danchamp

Description

@danchamp

type="submit" in this button template is redundant and results in a duplicate type attribute, causing HTML validation errors:

<button type="submit" {{ attributes.addClass(['btn', 'btn-primary', 'btn-sm', 'mt-2']) }}>

Example output from Croydon site directories:

<button type="submit"  data-drupal-selector="edit-submit-localgov-directory-channel-13" type="submit" id="edit-submit-localgov-directory-channel--13" value="Search" class="button js-form-submit form-submit btn btn-primary btn-sm mt-2">
  <span class="fa fa-chevron-right"></span>
  <span>Search</span>
</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions