1 Tests the behavior of .formaction, .formenctype, .formmethod and .formtarget of HTMLInputElement and HTMLButtonElement.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Ordinary values for input:
7 PASS input.formEnctype is ""
8 PASS input.formMethod is ""
9 PASS input.formTarget is ""
10 PASS input.formAction is "http://localhost/"
11 PASS input.formAction is "http://localhost/"
12 PASS input.formEnctype is "text/plain"
13 PASS input.formEnctype is "application/x-www-form-urlencoded"
14 PASS input.formMethod is "get"
15 PASS input.formMethod is "get"
16 PASS input.formTarget is "_blank"
17 PASS input.formTarget is "nu"
18 PASS input.formAction is "http://example.com/"
19 PASS input.formAction is "http://example.com/"
20 PASS input.formEnctype is "text/plain"
21 PASS input.formEnctype is "application/x-www-form-urlencoded"
22 PASS input.formMethod is "post"
23 PASS input.formMethod is "get"
24 PASS input.formTarget is "http://example.com"
25 PASS input.formTarget is "nta"
27 Setting null for input:
28 PASS input.formEnctype is "application/x-www-form-urlencoded"
29 PASS input.getAttribute("formEnctype") is "null"
30 PASS input.formEnctype is "application/x-www-form-urlencoded"
31 PASS input.formMethod is "get"
32 PASS input.getAttribute("formMethod") is "null"
33 PASS input.formMethod is "get"
34 PASS input.formTarget is "null"
35 PASS input.getAttribute("formTarget") is "null"
36 PASS input.formTarget is "null"
38 Setting undefined for input:
39 PASS input.formEnctype is "application/x-www-form-urlencoded"
40 PASS input.getAttribute("formEnctype") is "undefined"
41 PASS input.formEnctype is "application/x-www-form-urlencoded"
42 PASS input.formMethod is "get"
43 PASS input.getAttribute("formMethod") is "undefined"
44 PASS input.formMethod is "get"
45 PASS input.formTarget is "undefined"
46 PASS input.getAttribute("formTarget") is "undefined"
47 PASS input.formTarget is "undefined"
49 Setting non-string for input:
50 PASS input.formEnctype is "application/x-www-form-urlencoded"
51 PASS input.getAttribute("formEnctype") is "256"
52 PASS input.formEnctype is "application/x-www-form-urlencoded"
53 PASS input.formMethod is "get"
54 PASS input.getAttribute("formMethod") is "256"
55 PASS input.formMethod is "get"
56 PASS input.formTarget is "256"
57 PASS input.getAttribute("formTarget") is "256"
58 PASS input.formTarget is "256"
60 Ordinary values for button:
61 PASS button.formEnctype is ""
62 PASS button.formMethod is ""
63 PASS button.formTarget is ""
64 PASS button.formAction is "http://localhost/"
65 PASS button.formAction is "http://localhost/"
66 PASS button.formEnctype is "text/plain"
67 PASS button.formEnctype is "application/x-www-form-urlencoded"
68 PASS button.formMethod is "get"
69 PASS button.formMethod is "get"
70 PASS button.formTarget is "_blank"
71 PASS button.formTarget is "na"
72 PASS button.formAction is "http://example.com/"
73 PASS button.formAction is "http://example.com/"
74 PASS button.formEnctype is "text/plain"
75 PASS button.formEnctype is "application/x-www-form-urlencoded"
76 PASS button.formMethod is "post"
77 PASS button.formMethod is "get"
78 PASS button.formTarget is "http://example.com"
79 PASS button.formTarget is "nota"
81 Setting null for button:
82 PASS button.formEnctype is "application/x-www-form-urlencoded"
83 PASS button.getAttribute("formEnctype") is "null"
84 PASS button.formEnctype is "application/x-www-form-urlencoded"
85 PASS button.formMethod is "get"
86 PASS button.getAttribute("formMethod") is "null"
87 PASS button.formMethod is "get"
88 PASS button.formTarget is "null"
89 PASS button.getAttribute("formTarget") is "null"
90 PASS button.formTarget is "null"
92 Setting undefined for button:
93 PASS button.formEnctype is "application/x-www-form-urlencoded"
94 PASS button.getAttribute("formEnctype") is "undefined"
95 PASS button.formEnctype is "application/x-www-form-urlencoded"
96 PASS button.formMethod is "get"
97 PASS button.getAttribute("formMethod") is "undefined"
98 PASS button.formMethod is "get"
99 PASS button.formTarget is "undefined"
100 PASS button.getAttribute("formTarget") is "undefined"
101 PASS button.formTarget is "undefined"
103 Setting non-string for button:
104 PASS button.formEnctype is "application/x-www-form-urlencoded"
105 PASS button.getAttribute("formEnctype") is "256"
106 PASS button.formEnctype is "application/x-www-form-urlencoded"
107 PASS button.formMethod is "get"
108 PASS button.getAttribute("formMethod") is "128"
109 PASS button.formMethod is "get"
110 PASS button.formTarget is "100"
111 PASS button.getAttribute("formTarget") is "100"
112 PASS button.formTarget is "281"
113 PASS successfullyParsed is true