Bug 254109

Summary: HTML input textbox with type=number is not returning correct value when decimal is entered
Product: WebKit Reporter: Prakash Kumar <prakash.kumar.balu>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical    
Priority: P2    
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
Simple HTML page to demonstrate the issue. Please try enter number with decimal ex: 1.2 and see the value printed below none

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 ***