diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc b/chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc index d4d0a48280a..1391ae8173b 100644 --- a/chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc +++ b/chromium/third_party/blink/renderer/core/html/forms/submit_input_type.cc @@ -51,9 +51,10 @@ const AtomicString& SubmitInputType::FormControlType() const { } void SubmitInputType::AppendToFormData(FormData& form_data) const { - if (GetElement().IsActivatedSubmit()) - form_data.append(GetElement().GetName(), - GetElement().ValueOrDefaultLabel()); + if (GetElement().IsActivatedSubmit()) { + form_data.AppendFromElement(GetElement().GetName(), + GetElement().ValueOrDefaultLabel()); + } } bool SubmitInputType::SupportsRequired() const { |