| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index 03a3844148a46536e4d8d60daeb69c47ce9ac77c..502981f2a21b67558f44efb559d1b30007567b46 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -1025,7 +1025,7 @@ void HTMLInputElement::setValue(const String& value, TextFieldEventBehavior even
|
| m_inputType->setValue(sanitizedValue, valueChanged, eventBehavior);
|
|
|
| if (valueChanged && eventBehavior == DispatchNoEvent)
|
| - setTextAsOfLastFormControlChangeEvent(sanitizedValue);
|
| + setTextAsOfLastFormControlChangeEvent(sanitizedValue.isNull() ? defaultValue() : sanitizedValue);
|
|
|
| if (!valueChanged)
|
| return;
|
|
|