| Index: third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| index bcab21ac3f46e0c2da6f6670a0dfe911f50805aa..eb108dc9568e4d0f03e88f39ee50ac68c049cc97 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp
|
| @@ -121,6 +121,8 @@ double parseToDoubleForNumberType(const String& string, double fallbackValue)
|
| UChar firstCharacter = string[0];
|
| if (firstCharacter != '-' && firstCharacter != '.' && !isASCIIDigit(firstCharacter))
|
| return fallbackValue;
|
| + if (string.endsWith('.'))
|
| + return fallbackValue;
|
|
|
| bool valid = false;
|
| double value = string.toDouble(&valid);
|
|
|