Bug 247242
| Summary: | Locale inconsistency in inputmode="decimal" and input type="number" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Rene <prr> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | akeerthi, cdumez, karlcow, mmaxfield, webkit-bug-importer, wenson_hsieh, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
Rene
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
<rdar://problem/102011933>