WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
284363
<input type="number"> does not support full-width numbers (e.g., "ー200") for Japanese IME users
https://bugs.webkit.org/show_bug.cgi?id=284363
Summary
<input type="number"> does not support full-width numbers (e.g., "ー200") for ...
Kyouhei Horizumi
Reported
2024-12-10 04:19:51 PST
When entering full-width numbers in an `<input type="number">` field and pressing Enter, the entered value disappears. Unlike Firefox, Webkit-based browsers do not support full-width number input. This results in complaints from some Japanese users, especially those unfamiliar with input limitations, as they are unable to input numbers. Safari should allow full-width number input, similar to Firefox. ## Reproduction Steps: 1. Create an `<input type="number">` field. 2. Try entering the value `ー200` (a full-width number). ## Expected Behavior: The browser should accept full-width numbers as valid input and convert them to their half-width equivalents when necessary, similar to Firefox. ## Actual Behavior: ### Safari: Input value: ー200 (input allowed, but invalid) .value: "" .valueAsNumber: NaN ### Firefox: Input value: ー200 (input allowed, valid) .value: "-200" .valueAsNumber: -200 ### Chrome: Input value: ー200 (unable to input) .value: "" .valueAsNumber: NaN ## Environment: + Safari Technology Preview Release 209 (Safari 18.2, Webkit 20621.1.6) (macOS 15) + Firefox 133.0 (Windows 11) + Chrome 131.0.6778.109 (Windows 11) ## Reference
https://issuetracker.google.com/issues/383232110
Attachments
testcase
(898 bytes, text/html)
2024-12-18 21:53 PST
,
Karl Dubost
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-12-10 18:46:53 PST
<
rdar://problem/141257181
>
Kyouhei Horizumi
Comment 2
2024-12-13 01:12:13 PST
Sorry, I initially wrote that when entering full-width numbers in an <input type="number"> field and pressing Enter, the entered value disappears. However, I need to correct this: that behavior occurs in Chrome. In WebKit, the value does not disappear when pressing Enter but is internally treated as empty.
Karl Dubost
Comment 3
2024-12-18 21:53:18 PST
Created
attachment 473601
[details]
testcase This is a testcase to quickly try the issue for someone.
Anne van Kesteren
Comment 4
2024-12-18 23:15:13 PST
See also
bug 250535
. We're generally pretty strict at the moment for end user input, which isn't ideal.
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