New issue
Advanced search Search tips

Issue 887460 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 24
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

max=0 limit not being respected by spin buttons for input type=number

Reported by sir.gall...@gmail.com, Sep 20

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
1. In a HTML5 page create a form with an input type=number with a negative min value and zero max.
2. Use the spin buttons to change the value.
3. The lower limit is respected, but the upper limit is not

What is the expected behavior?
The value should stop at 0

What went wrong?
The value continues to grow past 0

Did this work before? No 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: 10.0
Flash Version: 

If the max is changed to any number other than 0 (either negative or positive) the limit is respected. If the 0 is set in the min value the limit is respected. Only when the zero is in the max value that the limit is not respected.

here is a sample control:
<input type="number" id="ctrl1" name="somecontrol" min="-5" max="0">
 
Labels: Needs-Triage-M69
Components: -Blink Blink>Forms>Number
Labels: Needs-Feedback
Not reproducible with Chrome 69 on Windows. We can't increase the value from "0" by the upper spin button.

> <input type="number" id="ctrl1" name="somecontrol" min="-5" max="0">

Do you have any other code? can you reproduce with the following URL?
    data:text/html,<input type="number" min="-5" max="0">

After some digging, I found that the bug was a side effect of a third-party control that was hijacking the behaviour and had an error in the js code.
Without that the control works fine.
The ticket can be closed.
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 21

Cc: tkent@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Triaged-ET
Status: WontFix (was: Unconfirmed)
As per comment #3, closing the issue as wontFix.

Thanks...!!

Sign in to add a comment