Closed
Bug 1368261
Opened 9 years ago
Closed 9 years ago
Usability Issue Leading Or Trailing Whitespace form <Input> type email
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1132142
People
(Reporter: jon, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Build ID: 20170518000419
Steps to reproduce:
Create an HTML5 page with a form and an input field of type email.
Type in an email with leading or trailing white space.
The email will look correct to the user who will typically not spot leading white space and will almost definitely not spot trailing white space.
Actual results:
The email address is not verified - the form fails to submit on account of leading or trailing whitespace.
Expected results:
Two outcomes would be acceptable.
1. Trailing or Leading white space could be stripped and the form IS submitted, this is probably the cleanest - it is only what my PHP code would do if given the chance but due to the Mozilla issue my PHP code never gets its hands on the email address.
2. The error message to the user says something useful about the presence of trailing or leading white space - the current message in English is "Please enter an email address" this is barely an error message as it does not actually state something is wrong and certainly supplies nothing specific or helpful. The user will look at what they have typed, check it is correct and leave the page frustrated - again people do not spot leading white space and almost certainly never see trailing whitespace.
I realise this is a similar bug to 1132142 but I do not feel that reflects my take on the situation.
I would also categorise this as a ultra-severe bug - I believe I am losing potential members on my website due to this, I am nearly at the stage of adding instructions to say "If you are using Mozilla then ......."
I would like to see this bug considered as a very high priority - it absolutely core and critical to most online activities to be able to sign up - email is a common requirement and to be failing to facilitate the user who has inadvertantly picked up an unwanted trailing or leading whitespace is a serious usability issue - people cannot react to what they cannot see. Consider the error message which is hardly an error message at all "Please enter an email address" and view it in context with the hard to see presence of leading whitespace - I believe half my users wouldnt even realise leading whitespace was an issue even if they could see it.
In the meantime I think I will need to change the type on my email input field to "text" as the Mozilla implementation here is blocking my path - I cannot afford to keep on losing potential sign-ups like this. I don't know if this issue exists on other browsers but it is undermining use of a great feature of HTML5 - email validation but it needs to be carefully tailored with real world usability consideration to be actually useful.
I would like to suggest that trailing or leading whitespace be considered undetectable by the average user in the context of an input field and usability based around this core assumption. It is not always apparent what is a leading whitespace and what is padding particularly with variable width fonts - sometimes the cursor can be used to detect trailing whitespace but the average user is not going to easily deal with this.
Updated•9 years ago
|
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Comment 1•9 years ago
|
||
Thanks for finding that other bug, Hsin-Yi. I think this is actually a dupe of that one.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•