WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
247242
Locale inconsistency in inputmode="decimal" and input type="number"
https://bugs.webkit.org/show_bug.cgi?id=247242
Summary
Locale inconsistency in inputmode="decimal" and input type="number"
Rene
Reported
2022-10-30 07:42:21 PDT
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).
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-11-06 06:43:17 PST
<
rdar://problem/102011933
>
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