HTML5 introduces the 'minlength' attribute but this attribute is not process by the 'theme_textfield' function (inside form.inc).

This small patch adds it so that the Drupal developer can also use it for HTML5 validation.

Comments

fdumitru created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, addMinlengthHTML5.patch, failed testing. View results

florin.dumitru’s picture

Status: Needs work » Needs review
StatusFileSize
new581 bytes

Updated the patch path.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.