Problem/Motivation

#1797438: HTML5 validation is preventing form submit and not fully accessible adds a setting to disable HTML5 validation in forms, and the setting is to be removed in D13.

This issue is to remove the setting in D13.

Steps to reproduce

Proposed resolution

  • Remove the condition from FormPreprocess such that $element['#attributes']['novalidate'] is always added.
  • Remove all references to $settings['enable_html5_validation'] and related comments.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

kentr created an issue. See original summary.

longwave’s picture

Title: Remove enable_html5_validation setting » [D13] Remove enable_html5_validation setting
Status: Active » Postponed

The Drupal 13 branch is not open yet so this cannot be worked on, marking as postponed for now.

quietone’s picture

Title: [D13] Remove enable_html5_validation setting » Remove enable_html5_validation setting
Issue tags: +13.0.0 release priority

I think we want to shift to tags since they are easier to search for.

catch’s picture

Title: Remove enable_html5_validation setting » [PP-1] Remove enable_html5_validation setting
Related issues: +#3592742: States API required fields don't work without HTML5 validation

I think we should explicitly postpone this on #3592742: States API required fields don't work without HTML5 validation too, it's a minor regression from the previous issue and I think the settings.php flag is enough (regardless of the default), but could be tough for a site making heavy use of #states required to get to Drupal 13 and find out it doesn't work.