WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
254077
HTML input textbox with type=number is not returning correct value when decimal is entered
https://bugs.webkit.org/show_bug.cgi?id=254077
Summary
HTML input textbox with type=number is not returning correct value when decim...
Prakash Kumar
Reported
2023-03-17 08:11:13 PDT
Created
attachment 465478
[details]
Simple HTML page to demonstrate the issue The value of textbox is returned as empty string when the user entered valid input with decimal point. User entered "1" ==> Output "1" User entered "1." ==> Output "" (This is wrong. It should have returned "1") User entered "1.2" ==> Output "1.1" Attached a simple HTML page. Please try entering "1.2" and see the value printed below the textbox. Same index.html we tried in IOS application which is compiled Xcode 14.1 having same issue. Same app with this index.html, if we compile in Xcode 13.0, this issue is not replicable.
Attachments
Simple HTML page to demonstrate the issue
(427 bytes, text/html)
2023-03-17 08:11 PDT
,
Prakash Kumar
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Prakash Kumar
Comment 1
2023-03-17 08:14:42 PDT
Typo corrected Simple HTML page to demonstrate the issue The value of textbox is returned as empty string when the user entered valid input with decimal point. User entered "1" ==> Output "1" User entered "1." ==> Output "" (This is wrong. It should have returned "1") User entered "1.2" ==> Output "1.2" Attached a simple HTML page. Please try entering "1.2" and see the value printed below the textbox. Same index.html we tried in IOS application which is compiled Xcode 14.1 having same issue. Same app with this index.html, if we compile in Xcode 13.0, this issue is not replicable.
Prakash Kumar
Comment 2
2023-03-17 08:21:34 PDT
Exact version where we replicated the issue MAC OS version: 13.2.1 Ventura MAC Safari version : Version 16.3 (18614.4.6.1.6) Iphone IOS version : ios16.1 (20B72)
Alexey Proskuryakov
Comment 3
2023-03-19 21:33:20 PDT
***
Bug 254109
has been marked as a duplicate of this bug. ***
Radar WebKit Bug Importer
Comment 4
2023-03-24 08:12:17 PDT
<
rdar://problem/107187010
>
Ahmad Saleem
Comment 5
2023-09-01 18:24:36 PDT
Merging following make us pass following test case:
https://chromium.googlesource.com/chromium/src.git/+/040a94e06971c4272408375ea1cffe1aeae2a316
Will do PR later. :-) Assigning to myself.
Ahmad Saleem
Comment 6
2023-09-01 18:49:07 PDT
Draft PR:
https://github.com/WebKit/WebKit/pull/17367
Ahmad Saleem
Comment 7
2023-09-02 02:51:14 PDT
***
Bug 258027
has been marked as a duplicate of this bug. ***
EWS
Comment 8
2023-09-02 03:26:00 PDT
Committed
267581@main
(4835336f30b5): <
https://commits.webkit.org/267581@main
> Reviewed commits have been landed. Closing PR #17367 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug