[Webkit-unassigned] [Bug 247242] New: Locale inconsistency in inputmode="decimal" and input type="number"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 30 07:42:21 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247242

            Bug ID: 247242
           Summary: Locale inconsistency in inputmode="decimal" and input
                    type="number"
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: prr at eava.ee
                CC: cdumez at apple.com, wenson_hsieh at apple.com

iPhone decimal keyboard does not always match with the decimal separator used in number input.

Steps to repro:
- have <input type="number" inputmode="decimal" value="1.99">
- have iPhone region set to location that uses comma as decimal separator (for example Estonia)
- have iPhone number format set to 1,234,567.89
- open the page in Safari. Safari displays the input as "1,99".
- try to edit the field -- Decimal keyboard has "." instead of ",".

The best expected result:
- input should honor the locale defined by <html lang> and display the input values and keyboard accordingly. So in case on <html lang="en-US> the input displays "1.99" and keyboard has "." and in case of <html lang="et">, the input displays "1,99" and keyboard has ",".

Minimum expected result:
- Both input and keyboard match with eatch other (preferably using the number format chosen in iPhone settings).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221030/89386208/attachment.htm>


More information about the webkit-unassigned mailing list