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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html

Issue 2201293002: FIELDSET element should not check inner controls in checkValidity(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkValidity-001-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html b/third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html
index 64772090430ab5eb2288786dc8463190714dccca..8a253f565daac25ce6ea4e2ed2ee2614e1d0f6b3 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html
@@ -7,6 +7,7 @@
<p id="description"></p>
<form method="get">
<fieldset name="victim"></fieldset>
+<fieldset name="victim"><input required></fieldset>
<input name="victim" type="text" value="lorem ipsum"/>
<button name="victim">lorem ipsum</button>
<select name="victim"></select>
@@ -20,7 +21,8 @@
description("This test checks if checkValidity() returns correctly a true (meaning no error) result.");
shouldBe('document.getElementsByTagName("fieldset")[0].checkValidity()', 'true');
-shouldBe('document.getElementsByTagName("input")[0].checkValidity()', 'true');
+shouldBe('document.getElementsByTagName("fieldset")[1].checkValidity()', 'true');
+shouldBe('document.getElementsByTagName("input")[1].checkValidity()', 'true');
shouldBe('document.getElementsByTagName("button")[0].checkValidity()', 'true');
shouldBe('document.getElementsByTagName("select")[0].checkValidity()', 'true');
shouldBe('document.getElementsByTagName("textarea")[0].checkValidity()', 'true');
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkValidity-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698