blob: 52cb2521046d96248802ecc146645a3c5c64760f [file] [log] [blame]
This test checks the form attribute of the form-associated elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
- Checks the existence of the form attribute for each form-associated elements.
FIXME: <label> doesn't support the form attribute for now.
PASS document.getElementsByTagName("button")[0].form is owner
PASS document.getElementsByTagName("fieldset")[0].form is owner
PASS document.getElementsByTagName("input")[0].form is owner
PASS document.getElementsByTagName("keygen")[0].form is owner
FAIL document.getElementsByTagName("label")[0].form should be [object HTMLFormElement]. Was null.
PASS document.getElementsByTagName("meter")[0].form is owner
PASS document.getElementsByTagName("object")[0].form is owner
PASS document.getElementsByTagName("output")[0].form is owner
PASS document.getElementsByTagName("progress")[0].form is owner
PASS document.getElementsByTagName("select")[0].form is owner
PASS document.getElementsByTagName("textarea")[0].form is owner
- Ensures that the form attribute points the form owner even if the element is within another form element.
PASS inputElement.form is owner
- Ensures that the form attribute of all form-associated element with or witout form attribute points the form owner.
PASS inputElement1.form is owner
PASS inputElement2.form is owner
PASS inputElement3.form is owner
- Ensures that the form attribute points the form owner even if the form element is nested another form element.
NOTE: It seems that nesting form elements is not allowed so we ensure each form-associated elements associate with the outmost form element.
PASS inputElement1.form is owner
PASS inputElement2.form is owner
PASS inputElement3.form is owner
- Ensures whether the form owner is set correctly when the value of form attribute of a form-associated element changed.
PASS inputElement.form is form1
PASS inputElement.form is form2
- Ensures whether the form owner is set correctly when the value of form attribute is added/removed.
PASS inputElement.form is null
PASS inputElement.form is owner
PASS inputElement.form is null
- Ensures whether the form owner is set correctly when the form owner is added/removed.
PASS owner.name is "firstOwner"
PASS owner.name is "secondOwner"
PASS inputElement.form is owner
PASS inputElement.form is null
PASS inputElement.form is owner
PASS successfullyParsed is true
TEST COMPLETE