1 Verify that only elements that are 'form associatable' get a form owner.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS elements.length > 0 is true
8 PASS formOwner is "defined"
10 PASS formOwner is "defined"
12 PASS formOwner is "defined"
14 PASS formOwner is "defined"
16 PASS formOwner is "defined"
18 PASS formOwner is "defined"
20 PASS formOwner is "defined"
22 PASS formOwner is "defined"
24 PASS formOwner is "defined"
26 PASS formOwner is "defined"
28 PASS formOwner is "defined"
30 PASS formOwner is "defined"
32 PASS formOwner is "defined"
34 PASS formOwner is "not defined"
36 PASS formOwner is "not defined"
38 PASS formOwner is "not defined"
40 PASS formOwner is "not defined"
42 PASS formOwner is "defined"
44 PASS formOwner is "defined"
46 PASS formOwner is "defined"
48 PASS formOwner is "defined"
50 PASS formOwner is "not defined"
52 PASS formOwner is "not defined"
54 PASS formOwner is "not defined"
56 Tests for association-by-parser:
57 PASS form2['input1'] is defined.
58 PASS form2['image1'] is defined.
59 PASS form2['input-in-document'] is defined.
60 PASS form2['image-in-document'] is defined.
61 Detach a form, input1 and image1 from the document
62 PASS form2['input1'] is defined.
63 PASS form2['image1'] is defined.
64 PASS form2['input-in-document'] is undefined.
65 PASS form2['image-in-document'] is undefined.
66 Association-by-parser should not work for non-Document trees
67 PASS removed.querySelector('form')['image4'] is undefined.
68 PASS removed.querySelector('input').form is null
69 PASS removed.querySelector('object').form is null
70 PASS successfullyParsed is true