Bug 254109 - HTML input textbox with type=number is not returning correct value when decimal is entered
Summary: HTML input textbox with type=number is not returning correct value when decim...
Status: RESOLVED DUPLICATE of bug 254077
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-18 00:18 PDT by Prakash Kumar
Modified: 2023-03-19 21:33 PDT (History)
0 users

See Also:


Attachments
Simple HTML page to demonstrate the issue. Please try enter number with decimal ex: 1.2 and see the value printed below (427 bytes, text/html)
2023-03-18 00:18 PDT, Prakash Kumar
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prakash Kumar 2023-03-18 00:18:56 PDT
Created attachment 465489 [details]
Simple HTML page to demonstrate the issue. Please try enter number with decimal ex: 1.2 and see the value printed below

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.
Comment 1 Alexey Proskuryakov 2023-03-19 21:33:20 PDT

*** This bug has been marked as a duplicate of bug 254077 ***