New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 630330 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 117378
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

maxlength attribute does not restrict the entry of values in input element in web application

Reported by sirius.p...@gmail.com, Jul 21 2016

Issue description

Steps to reproduce the problem:
1. <input type="number" maxlength="5" id="keyValue1"/>
2. enter integers more than 5
3. 

What is the expected behavior?
It shouldn't allow more than 5 characters

What went wrong?
it allows any number of characters

Did this work before? N/A 

Chrome version: 51.0.2704.81  Channel: n/a
OS Version: 6.0.1
Flash Version: Shockwave Flash 22.0 r0
 
Cc: tedc...@chromium.org
Cc: changman@chromium.org
Components: -UI Blink>Forms>Number

Comment 3 by tkent@chromium.org, Jul 22 2016

Owner: tkent@chromium.org
Status: WontFix (was: Unconfirmed)
This behavior is defined by the standard.

https://html.spec.whatwg.org/multipage/forms.html#number-state-(type=number)
> The following content attributes must not be specified and do not apply to the element: accept, alt, checked, dirname, formaction, formenctype, formmethod, formnovalidate, formtarget, height, inputmode, maxlength,...

Comment 4 by tkent@chromium.org, Nov 6 2016

Mergedinto: 117378
Status: Duplicate (was: WontFix)

Sign in to add a comment