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

Unified Diff: LayoutTests/fast/forms/form-attribute.html

Issue 102263006: Implement HTMLOptionElement.form as required by spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
Index: LayoutTests/fast/forms/form-attribute.html
diff --git a/LayoutTests/fast/forms/form-attribute.html b/LayoutTests/fast/forms/form-attribute.html
index c81325be283e99f498fce89d874d416d0e954d36..5bd9dc632bdc0c306a748e72be619a9840bf2cf7 100644
--- a/LayoutTests/fast/forms/form-attribute.html
+++ b/LayoutTests/fast/forms/form-attribute.html
@@ -178,6 +178,19 @@ shouldBe('labelElement.form', 'null');
container.appendChild(owner);
shouldBe('inputElement.form', 'owner');
shouldBe('labelElement.form', 'owner');
+
+debug('');
+debug('- Checks if option.form is only set if it has a <select> parent.');
+container.innerHTML = '<form id=firstOwner><option id=firstOption></option></form>' +
+ '<form id=secondOwner><optgroup><option id=secondOption></option></optgroup></form>' +
+ '<form id=thirdOwner><select><optgroup><option id=thirdOption></option></optgroup></select></form>';
+var option1 = document.getElementById('firstOption');
+shouldBe('option1.form', 'null');
+var option2 = document.getElementById('secondOption');
+shouldBe('option2.form', 'null');
+owner = document.getElementById('thirdOwner');
+var option3 = document.getElementById('thirdOption');
+shouldBe('option3.form', 'owner');
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-attribute-expected.txt » ('j') | Source/core/html/HTMLOptionElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698