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
FormPreprocesssuch that$element['#attributes']['novalidate']is always added. - Remove all references to
$settings['enable_html5_validation']and related comments.
Comments
Comment #2
longwaveThe Drupal 13 branch is not open yet so this cannot be worked on, marking as postponed for now.
Comment #3
quietone commentedI think we want to shift to tags since they are easier to search for.
Comment #4
catchI 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.