| 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>
|
|
|