| Index: Source/core/html/forms/URLInputType.cpp
|
| diff --git a/Source/core/html/forms/URLInputType.cpp b/Source/core/html/forms/URLInputType.cpp
|
| index db6942b559e9790e16c4222df4f0be986cfb7f99..dd16ba32d6bfa666a27dd5c8965cd5a41fa45417 100644
|
| --- a/Source/core/html/forms/URLInputType.cpp
|
| +++ b/Source/core/html/forms/URLInputType.cpp
|
| @@ -33,6 +33,7 @@
|
|
|
| #include "core/InputTypeNames.h"
|
| #include "core/html/HTMLInputElement.h"
|
| +#include "core/html/parser/HTMLParserIdioms.h"
|
| #include "platform/text/PlatformLocale.h"
|
| #include "wtf/PassOwnPtr.h"
|
|
|
| @@ -53,6 +54,12 @@ const AtomicString& URLInputType::formControlType() const
|
| return InputTypeNames::url;
|
| }
|
|
|
| +String URLInputType::sanitizeValue(const String& proposedValue) const
|
| +{
|
| + String value = proposedValue.removeCharacters(isHTMLLineBreak);
|
| + return stripLeadingAndTrailingHTMLSpaces(value);
|
| +}
|
| +
|
| bool URLInputType::typeMismatchFor(const String& value) const
|
| {
|
| return !value.isEmpty() && !KURL(KURL(), value).isValid();
|
|
|