Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This is essentially a backport from D8 core issue. The user login form lacks attributes "autocapitalize", "spellcheck" and "autocorrect" creating problems on some mobile browsers (like Safari). Previous issue seems that there is a tension between W3C compliance and usability ().
Proposed resolution
Proposed solution to add to user form:
- autocorrect="none"
- autocapitalize="none"
- spellcheck="false"
Remaining tasks
- discuss
- patch
- review
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#18 | 2537190-17.patch | 938 bytes | robertwb |
#18 | 2537190-17.patch | 938 bytes | robertwb |
#9 | 2537190-9.patch | 902 bytes | robertwb |
#6 | 2537190-6.patch | 524 bytes | robertwb |
#3 | 2537190-3.patch | 525 bytes | robertwb |
Comments
Comment #1
robertwb CreditAttribution: robertwb commentedComment #2
robertwb CreditAttribution: robertwb commentedAttached patch implementing proposed solution.
Comment #3
robertwb CreditAttribution: robertwb commentedUpdated - removed autofocus
Comment #4
cilefen CreditAttribution: cilefen commentedComment #5
cilefen CreditAttribution: cilefen commentedYou have a space at the end of this line.
Comment #6
robertwb CreditAttribution: robertwb commentedRemoved extraneous space from line. Thanks @cilefen
Comment #7
cilefen CreditAttribution: cilefen commentedIs this needed on the registration form too?
Comment #8
cilefen CreditAttribution: cilefen commentedIt is surely needed on the /user form also, and we have to decide about the registration form.
Comment #9
robertwb CreditAttribution: robertwb commentedOK - attached patch has it on the /user form. The reg form is above my pay grade :) I would opt to do what they did in the d8? Which I think was not to touch it, but the form structure is much different there so that may be a bad assumption on my part.
Comment #10
robertwb CreditAttribution: robertwb commentedComment #11
robertwb CreditAttribution: robertwb commentedComment #12
robertwb CreditAttribution: robertwb commentedComment #15
robertwb CreditAttribution: robertwb commentedComment #16
robertwb CreditAttribution: robertwb commentedComment #17
robertwb CreditAttribution: robertwb commentedComment #18
robertwb CreditAttribution: robertwb commentedThis brings into line with the D8 login.
Comment #19
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commentedIs there a reason why in the D8 patch was
'spellcheck' => 'false',
and here is'spellcheck' => 'none',
? The'spellcheck' => 'false',
is still present in D9 codebase, so I suppose this is the correct one.Comment #20
jenlamptonSetting to NW based on the latest comment by @poker10 .