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

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: 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
Index: Source/platform/text/PlatformLocale.cpp
diff --git a/Source/platform/text/PlatformLocale.cpp b/Source/platform/text/PlatformLocale.cpp
index 60acf5a59ba7e7e0b5abb69a3a4ca862ac4f605e..66ff42e48373eb0e17f4a1a191aef3598c117e39 100644
--- a/Source/platform/text/PlatformLocale.cpp
+++ b/Source/platform/text/PlatformLocale.cpp
@@ -284,6 +284,8 @@ String Locale::convertToLocalizedNumber(const String& input)
case '.':
builder.append(m_decimalSymbols[DecimalSeparatorIndex]);
break;
+ case ' ':
tkent 2014/04/14 00:47:37 This change is unnecessary. The input string must
+ break;
default:
ASSERT_NOT_REACHED();
}
« Source/core/html/parser/HTMLParserIdioms.cpp ('K') | « Source/core/html/parser/HTMLParserIdioms.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698