Open Bug 1578412 Opened 5 years ago Updated 2 years ago

Maximum number 12403946949000000 despite being set higher

Categories

(Core :: DOM: Core & HTML, defect, P3)

60 Branch
Desktop
All
defect

Tracking

()

Tracking Status
firefox69 --- affected
firefox70 --- affected
firefox71 --- affected

People

(Reporter: porowns, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

Opened the following HTML:
<input value=12403946948999999 min="-9223372036854775808" max="9223372036854775807" type="number">

Actual results:

It displayed an integer input field with 12403946949000000.

Expected results:

It should have displayed an integer input field with 12403946948999999.

The output in Google Chrome is 12403946948999999. This is bad for some web frameworks because the maximum integer is 9223372036854775807 for BIGINT values across multiple databases.

This issue was reproduced on all the three main Firefox versions, on Windows 10 and Mac OS 10.14. Component set is (Core) HTML Parser. Please set a more appropriate one if incorrect. Thank you!

Status: UNCONFIRMED → NEW
Component: Untriaged → HTML: Parser
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop
Component: HTML: Parser → DOM: Core & HTML
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.