Page MenuHomePhabricator

Allow TextInputWidget to specify the "minlength" attribute
Closed, ResolvedPublicFeature

Description

OOJS-ui should allow the use of "minlength" in HTMLForm's HTMLTextField which is needed for a feature in CheckUser. The attribute is supported in all browsers, except IE 11. Considering this would only be adding an attribute which is otherwise ignored this should cause no change to browsers that do not support the minlength attribute, but allow those using modern browsers to have the browser tell the user that the field needs to be more than X characters.

Event Timeline

Change 845866 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[oojs/ui@master] Allow minlength attribute to be set in text input based widgets

https://gerrit.wikimedia.org/r/845866

Dreamy_Jazz renamed this task from Allow OOJS-ui php widget TextInputWidget to specify the "minlength" attribute to Allow TextInputWidget to specify the "minlength" attribute.Oct 22 2022, 12:53 PM
Dreamy_Jazz claimed this task.
Dreamy_Jazz moved this task from Backlog to Reviewing on the OOUI board.

Change 845866 merged by jenkins-bot:

[oojs/ui@master] Allow minlength attribute to be set in text input based widgets

https://gerrit.wikimedia.org/r/845866

When might there be a next release for this library so that I can work on the parent tasks?

When might there be a next release for this library so that I can work on the parent tasks?

I don't know, @Volker_E and @Jdforrester-WMF make the releases.

Change 865677 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/core@master] Update OOUI to v0.46.0

https://gerrit.wikimedia.org/r/865677

Change 865677 merged by jenkins-bot:

[mediawiki/core@master] Update OOUI to v0.46.0

https://gerrit.wikimedia.org/r/865677

OOUI updated in mediawiki/core. This task is now complete.