Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
index 9f0381e4f979ad9e6a99158e7ea4dbf484b74e6d..b37076766a78a8bafd0c779fcaed6e6a9f97fe42 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp |
@@ -1457,12 +1457,12 @@ String HTMLInputElement::localizeValue(const String& proposedValue) const |
bool HTMLInputElement::isInRange() const |
{ |
- return m_inputType->isInRange(value()); |
+ return willValidate() && m_inputType->isInRange(value()); |
} |
bool HTMLInputElement::isOutOfRange() const |
{ |
- return m_inputType->isOutOfRange(value()); |
+ return willValidate() && m_inputType->isOutOfRange(value()); |
} |
bool HTMLInputElement::isRequiredFormControl() const |