Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1471)

Unified Diff: Source/platform/text/PlatformLocale.cpp

Issue 235273003: parsing input type=number should skip spaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/number/number-skip-spaces-in-user-input-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/PlatformLocale.cpp
diff --git a/Source/platform/text/PlatformLocale.cpp b/Source/platform/text/PlatformLocale.cpp
index 60acf5a59ba7e7e0b5abb69a3a4ca862ac4f605e..bef3a3bf31ffe08c59573632d25ac4a6e06fe78c 100644
--- a/Source/platform/text/PlatformLocale.cpp
+++ b/Source/platform/text/PlatformLocale.cpp
@@ -351,7 +351,7 @@ unsigned Locale::matchedDecimalSymbolIndex(const String& input, unsigned& positi
String Locale::convertFromLocalizedNumber(const String& localized)
{
initializeLocaleData();
- String input = localized.stripWhiteSpace();
+ String input = localized.removeCharacters(isASCIISpace);
if (!m_hasLocaleData || input.isEmpty())
return input;
« no previous file with comments | « LayoutTests/fast/forms/number/number-skip-spaces-in-user-input-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698