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

Issue 798213 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Number type input maximum value error

Reported by m.fatihk...@gmail.com, Jan 1 2018

Issue description

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

Steps to reproduce the problem:
1. First write minimun number into that form input (referenced input = third image) (first image)
2. After add some value after last character like 0.001 to 0.0011 (As we know 0.0011 bigger than 0.001)
3. And try to submit form but you cant chrome gives error in the second image

What is the expected behavior?

What went wrong?
Chrome doesn't accept value bigger than minimum value and smaller than max value

Did this work before? N/A 

Chrome version: 63.0.3239.84  Channel: n/a
OS Version: 10.0
Flash Version: 

as I understand chrome works like:
min value = 0.001
step(increment) value: 0.001
if value doesn't equal to the nearest value reject it

trying to model in python:
0.001 in numpy.arange(0.001, 10.0, 0.001)
returns True

0.0011 in numpy.arange(0.001, 10.0, 0.001)
returns False

also sorry for bad english (and maybe low knowledge about programming(I'm 14 years old))
 
Capture.PNG
6.4 KB View Download
Capture1.PNG
11.8 KB View Download
Capture3.PNG
3.4 KB View Download

Comment 1 by woxxom@gmail.com, Jan 1 2018

The observed behavior is correct per the specification:
https://html.spec.whatwg.org/multipage/input.html#the-step-attribute

>Constraint validation: When the element has an allowed value step, and the result of applying the algorithm to convert a string to a number to the string given by the element's value is a number, and that number subtracted from the step base is not an integral multiple of the allowed value step, the element is suffering from a step mismatch.
Cc: vamshi.k...@techmahindra.com
Labels: Needs-Feedback Triaged-ET Needs-Triage-M63
Thanks for filing the issue!

@Reporter: Could you please provide a sample test file/URL which helps us to triage the issue in a better way. Any further inputs from your end helps us.
Status: Archived (was: Unconfirmed)
Archiving old bugs that haven't been actively assigned in over 180 days.

If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!

Sign in to add a comment