Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index f73c02b6a8c4bcf56f1622b0a995e25de8f978a2..6e72561cd1ca08560447b0f32dc0240d3fca3a08 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -732,7 +732,7 @@ bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(WillBeHeapVector<R |
for (unsigned i = 0; i < elements.size(); ++i) { |
if (elements[i]->form() == this && elements[i]->isFormControlElement()) { |
HTMLFormControlElement* control = toHTMLFormControlElement(elements[i].get()); |
- if (!control->checkValidity(unhandledInvalidControls, eventBehavior) && control->formOwner() == this) { |
+ if (control->isSubmittableElement() && !control->checkValidity(unhandledInvalidControls, eventBehavior) && control->formOwner() == this) { |
++invalidControlsCount; |
if (!unhandledInvalidControls && eventBehavior == CheckValidityDispatchNoEvent) |
return true; |