Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#42886 closed enhancement (fixed)

Disable autocapitalize for the user login field on wp-login.php

Reported by: johnbillion Owned by: johnbillion
Priority: normal Milestone: 5.1
Component: Login and Registration Version:
Severity: normal Keywords: good-first-bug has-patch needs-testing commit
Cc: Focuses: ui

Description

When logging in to WordPress with Chrome on Android, the Username or Email Address field has autocapitalization enabled, which is not desirable. Using Chrome or Safari on iOS the field is not autocapitalized, but I'm not sure why (might be an iOS thing).

Autocapitalization can be disabled using the autocapitalize="off" attribute. This should be applied to the user_login field when logging in, performing a password reset, registering, etc.

Attachments (1)

42886.diff​ (2.1 KB ) - added by drywallbmb 9 years ago.

Download all attachments as: .zip

Change History (9)

#1 @drywallbmb
9 years ago

Seems straightforward enough.... right?

#2 @johnbillion
9 years ago

  • Keywords has-patch needs-testing added; needs-patch removed
  • Milestone Awaiting Review → 5.0

#3 in reply to: ↑ description @SergeyBiryukov
9 years ago

Replying to johnbillion:

When logging in to WordPress with Chrome on Android, the Username or Email Address field has autocapitalization enabled, which is not desirable.

Hmm, could not reproduce with Chrome 62 on Android 5.1.1 or 4.3.0.

Per ​https://developers.google.com/web/updates/2015/04/autocapitalize, autocapitalize="off" is the default value. Has something changed since that post?

#4 @johnbillion
9 years ago

I'm running Android 7.1. Something might have changed. I don't have any older Android devices immediately to hand to test.

#5 @SergeyBiryukov
9 years ago

  • Keywords commit added

Nevermind, reproduced with default keyboard (previously was running Gboard). 42886.diff​ works as expected.

#6 @johnbillion
9 years ago

  • Owner set to johnbillion
  • Status new → reviewing

#7 @johnbillion
9 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 42406:

Login and Registration: Instruct the browser to disable autocapitalisation for the user login field on the login screen.

Props drywallbmb
Fixes #42886

#8 @johnbillion
8 years ago

  • Milestone 5.0 → 5.1
Note: See TracTickets for help on using tickets.