[wp-trac] [WordPress Trac] #49608: Implementing HTML 5.2 into the use create and edit forms.
WordPress Trac
noreply at wordpress.org
Mon Mar 9 10:08:55 UTC 2020
#49608: Implementing HTML 5.2 into the use create and edit forms.
---------------------------+-----------------------------
Reporter: derweili | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: 2nd-opinion
Focuses: accessibility |
---------------------------+-----------------------------
With the autocomplete attribute, we can specify what information the user-
agent must provide when (auto-)filling form field values, and provide
guidance to the browser about the type of information expected in the
field.
Using the autocompletion attributes results in better UX and
accessibility.
By now the autocomplete attribute is not used for the WordPress User
Login/Signup/Edit forms. (except for the password-field where it is
disabled)
'''Example improvement:'''
By implementing the HTML autocomplete attributes we could tell the user-
agent to input a new password on the signup page and to use an existing
password on the login page. This info can then be used by the browser,
Password-Managers or assistive technology to provide the appropriate
information.
More information can be found on the https://www.w3.org/TR/WCAG21/#input-
purposes
I would recommend to use following autocomplete values for following
forms:
== suggestion
=== Login Form
||= '''Form Field''' =||= '''Autocomplete Value''' =||
||Username/Email||TBD||
||Password||current-password||
=== Lost password form
||= '''Form Field''' =||= '''Autocomplete Value''' =||
||Username/Email||TBD||
=== Password Reset Form
||= Form Field =||= Autocomplete Value =||
||New Passwort||new-password||
=== Add new User / Edit User / Edit Profile - forms
||= '''Form Field''' =||= '''Autocomplete Value''' =||
||Username||username||
||Email||email||
||First Name||additional-name||
||Last Name||family-name||
||Website||||
||Password||new-password||
||Nickname||nickname||
=== Register form
||= '''Form Field''' =||= '''Autocomplete Value''' =||
||Username||username||
||Email||email||
I'm currently not sure what autocomplete value to use for the
Username/Email field on the login and lost password forms.
These fields support username as well as email, but the autocomplete
attribute does not support multiple values yet.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49608>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list