1 This test checks the form attribute of the form-associated elements.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 - Checks the existence of the form attribute for each form-associated elements.
7 PASS document.getElementsByTagName("button")[0].form is owner
8 PASS document.getElementsByTagName("fieldset")[0].form is owner
9 PASS document.getElementsByTagName("input")[0].form is owner
10 PASS document.getElementsByTagName("keygen")[0].form is owner
11 PASS document.getElementsByTagName("label")[0].form is owner
12 PASS document.getElementsByTagName("object")[0].form is owner
13 PASS document.getElementsByTagName("output")[0].form is owner
14 PASS document.getElementsByTagName("select")[0].form is owner
15 PASS document.getElementsByTagName("textarea")[0].form is owner
17 - Ensures that the form attribute points the form owner even if the element is within another form element.
18 PASS inputElement.form is owner
19 PASS labelElement.form is owner
21 - Ensures that the form attribute of all form-associated element with or witout form attribute points the form owner.
22 PASS inputElement1.form is owner
23 PASS inputElement2.form is owner
24 PASS inputElement3.form is owner
25 PASS labelElement1.form is owner
26 PASS labelElement2.form is owner
27 PASS labelElement3.form is owner
29 - Ensures that the form attribute points the form owner even if the form element is nested another form element.
30 NOTE: It seems that nesting form elements is not allowed so we ensure each form-associated elements associate with the outmost form element.
31 PASS inputElement1.form is owner
32 PASS inputElement2.form is owner
33 PASS inputElement3.form is owner
34 PASS labelElement1.form is owner
35 PASS labelElement2.form is owner
36 PASS labelElement3.form is owner
38 - Ensures whether the form owner is set correctly when the value of form attribute of a form-associated element changed.
39 PASS inputElement.form is form1
40 PASS inputElement.form is form2
41 PASS labelElement.form is form1
42 PASS labelElement.form is form2
43 PASS objectElement.form is form1
44 PASS objectElement.form is form2
46 - Ensures whether the form owner is set correctly when the value of form attribute is added/removed.
47 PASS inputElement.form is null
48 PASS inputElement.form is owner
49 PASS inputElement.form is null
50 PASS labelElement.form is null
51 PASS labelElement.form is owner
52 PASS labelElement.form is null
53 PASS objectElement.form is null
54 PASS objectElement.form is owner
55 PASS objectElement.form is null
57 - Ensures whether the form owner is set correctly when the form owner is added/removed.
58 PASS owner.name is "firstOwner"
59 PASS owner.name is "secondOwner"
60 PASS inputElement.form is owner
61 PASS labelElement.form is owner
62 PASS inputElement.form is null
63 PASS labelElement.form is null
64 PASS inputElement.form is owner
65 PASS labelElement.form is owner
67 - Check if a form and a control are disassociated when they are removed from the document together.
68 PASS owner.elements.length is 1
69 PASS owner.elements.length is 0
71 - Checks if option.form is only set if it has a <select> parent.
72 PASS option1.form is null
73 PASS option2.form is null
74 PASS option3.form is owner
76 - Checks if updating form[id] correctly works
77 PASS control.form is form1
78 PASS form1.setAttribute("id", "b"); control.form is form2
79 PASS successfullyParsed is true