New issue
Advanced search Search tips

Issue 619048 link

Starred by 4 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Chromebook internal keyboard does not restrict input field to maxlength

Reported by joel.l...@pearson.com, Jun 10 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Platform: 8350.21.0

Steps to reproduce the problem:
1. Use the chromebook in tablet mode
2. Type letters using the built-in keyboard
3. 

What is the expected behavior?
No letters should be accepted after the maxlength of the input is reached.

What went wrong?
The input box can be filled with more characters than the maxlength.

Did this work before? N/A 

Chrome version: 52.0.2743.32  Channel: dev
OS Version: 52.0.2743.32
Flash Version: Shockwave Flash 22.0.0.168-r1

You can use this example: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_maxlength
 
It looks like the validation just occurs after the user is finished entering text. Adding autocorrect="off" can be used as a workaround for this issue.
I could not reproduce this issue.  Maxlength worked for me on 52 dev, tablet and desktop mode.  Could you take a video of the behavior you're seeing?
Cc: maxkirsch@chromium.org
Following these steps I can reproduce this consistently:

1. Go to http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_maxlength
2. auto-correction is enabled (moderate) and Gesture Typing is enabled
3. Flip Chromebook to tablet mode
4. Type letters with the on-screen keyboard

Result: it doesn't stop you from typing more letters than the maxlength of 10

IMG_0756.JPG
3.2 MB View Download
Part of what is going on here is that the input is being done in composition mode (as denoted by the underline beneath the text, which you may have turned off in your keyboard settings) and the text is not validated until the composition complete event is received. Personally, I find it really annoying that the auto-correction mode is being treated as a composition, but as noted you can disable this in your HTML by setting autocorrect="off" and autocomplete="off".
Components: -UI Blink>Input
Components: -Blink>Input Blink>Editing

Comment 8 by tkent@chromium.org, Aug 4 2016

Components: Blink>Forms
Status: WontFix (was: Unconfirmed)
This works as intended for now. Maxlength doesn't restrict composition text.

Sign in to add a comment