This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Proposal: Remove maxlength/minlength attribute support for type=email * No good usecases. * Needs extra implementation cost because of IDN. * UAs can't show the detailed validation message for tooLong/tooShort Chrome and Firefox show the following message for type=text: > Please shorten this text to $MAX_CHARACTERS characters or less (you are currently using $CURRENT_LENGTH characters). Showing numbers like $MAX_CHARACTERS and $CURRENT_LENGTH for type=email is useless because of IDN, and UAs need to show an abstract message.
Yeah, that's a good point. The original use case was servers that have a server-side limitation. What do you propose they do instead? Maybe I can include suitable advice in the spec for authors facing such limitations.
Yeah, it's possible that adding maxlength for a sever-side limitation. However I haven't seen actual instances of input[type=email][maxlength]. I'm afraid maxlength solves non-existent problem. Ok, I'll add usage-counting code of input[type=email][maxlength] to Google Chrome, and will report the result a few months later. I think minlength is really useless for type=email.
It's true that I've never seen type=email maxlength... minlength is there purely because maxlength is. I didn't want there to be a one-off control that happened to only have one of the two or something. It seemed pointlessly complicated. Seems like a reasonable request. Anyone object?
Seems reasonable.
Removing it sounds good, but let’s wait for the data (comment #2) before making a decision.
Roger. Kent, when you have the data please let us know, thanks!
It seems removing maxlength support for type=email is not reasonable. Google Chrome 32 Stable has usage counting code for type=email and maxlength. The result: Ratio of the number of input[type=email][maxlength]:not([multiple]) to the number of input[type=email]:not([multiple]) 23.8% Ratio of the number of input[type=email][maxlength][multiple] to the number of input[type=email][multiple] 0.4% FYI. Ratio of the number of input[type=email][multiple] to the number of input[type=email] 0.09% FYI. Ratio of the number of text inputs with maxlength to the number of text inputs 30.9% FYI. Ratio of the number of input[type=password][maxlength] to the number of input[type=password] 23.0%
:-( I guess we'll mark this WONTFIX. :-(