[webkit-changes] [WebKit/WebKit] 483533: Ignore leading '+' and trailing '.' in input[type=...
Ahmad Saleem
noreply at github.com
Sat Sep 2 03:26:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4835336f30b5fee8fac0874b85920929f4ed4970
https://github.com/WebKit/WebKit/commit/4835336f30b5fee8fac0874b85920929f4ed4970
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-09-02 (Sat, 02 Sep 2023)
Changed paths:
M LayoutTests/fast/forms/number/number-validity-badinput-expected.txt
M LayoutTests/fast/forms/number/number-validity-badinput.html
M Source/WebCore/platform/text/PlatformLocale.cpp
Log Message:
-----------
Ignore leading '+' and trailing '.' in input[type=number]
https://bugs.webkit.org/show_bug.cgi?id=254077
rdar://problem/107187010
Reviewed by Ryosuke Niwa.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
Merge: https://chromium.googlesource.com/chromium/src.git/+/040a94e06971c4272408375ea1cffe1aeae2a316
This PR enables `input` number type to output value after decimal input
rather than 'emptyString'. This doesn't affect `value` content attribute and
`value` IDL attribute.
* Source/WebCore/platform/text/PlatformLocale.cpp:
(Locale::convertFromLocalizedNumber):
* LayoutTests/fast/forms/number/number-validity-badinput.html: Add Test Case
* LayoutTests/fast/forms/number/number-validity-badinput-expected.txt: Add Test Case Expectation
Canonical link: https://commits.webkit.org/267581@main
More information about the webkit-changes
mailing list