Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 1202563009: <fieldset> should be ignored in interactive validation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/fieldset/validation-message-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index f73c02b6a8c4bcf56f1622b0a995e25de8f978a2..6239225ab94e40e5766eeb145f16a2d043f4c924 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -303,7 +303,7 @@ bool HTMLFormElement::validateInteractively()
if (document().frame()) {
for (unsigned i = 0; i < unhandledInvalidControls.size(); ++i) {
HTMLFormControlElement* unhandled = unhandledInvalidControls[i].get();
- if (unhandled->isFocusable())
+ if (unhandled->isFocusable() || unhandled->formControlType() == "fieldset")
tkent 2015/06/25 06:16:45 Here is not the correct place to check if it's <fi
continue;
String message("An invalid form control with name='%name' is not focusable.");
message.replace("%name", unhandled->name());
« no previous file with comments | « LayoutTests/fast/forms/fieldset/validation-message-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698