| Tests the behavior of .formaction, .formenctype, .formmethod and .formtarget of HTMLInputElement and HTMLButtonElement. | |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | |
| Ordinary values for input: | |
| PASS input.formAction is "" | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "" | |
| PASS input.formAction is "http://localhost/" | |
| PASS input.formAction is "http://localhost/" | |
| PASS input.formEnctype is "text/plain" | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "get" | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "_blank" | |
| PASS input.formTarget is "nu" | |
| PASS input.formAction is "http://example.com/" | |
| PASS input.formAction is "http://example.com/" | |
| PASS input.formEnctype is "text/plain" | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "post" | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "http://example.com" | |
| PASS input.formTarget is "nta" | |
| Setting null for input: | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.getAttribute("formEnctype") is null | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "get" | |
| PASS input.getAttribute("formMethod") is null | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "" | |
| PASS input.getAttribute("formTarget") is null | |
| PASS input.formTarget is "null" | |
| Setting undefined for input: | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.getAttribute("formEnctype") is "undefined" | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "get" | |
| PASS input.getAttribute("formMethod") is "undefined" | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "undefined" | |
| PASS input.getAttribute("formTarget") is "undefined" | |
| PASS input.formTarget is "undefined" | |
| Setting non-string for input: | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.getAttribute("formEnctype") is "256" | |
| PASS input.formEnctype is "application/x-www-form-urlencoded" | |
| PASS input.formMethod is "get" | |
| PASS input.getAttribute("formMethod") is "256" | |
| PASS input.formMethod is "get" | |
| PASS input.formTarget is "256" | |
| PASS input.getAttribute("formTarget") is "256" | |
| PASS input.formTarget is "256" | |
| Ordinary values for button: | |
| PASS button.formAction is "" | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "" | |
| PASS button.formAction is "http://localhost/" | |
| PASS button.formAction is "http://localhost/" | |
| PASS button.formEnctype is "text/plain" | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "get" | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "_blank" | |
| PASS button.formTarget is "na" | |
| PASS button.formAction is "http://example.com/" | |
| PASS button.formAction is "http://example.com/" | |
| PASS button.formEnctype is "text/plain" | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "post" | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "http://example.com" | |
| PASS button.formTarget is "nota" | |
| Setting null for button: | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.getAttribute("formEnctype") is null | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "get" | |
| PASS button.getAttribute("formMethod") is null | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "" | |
| PASS button.getAttribute("formTarget") is null | |
| PASS button.formTarget is "null" | |
| Setting undefined for button: | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.getAttribute("formEnctype") is "undefined" | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "get" | |
| PASS button.getAttribute("formMethod") is "undefined" | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "undefined" | |
| PASS button.getAttribute("formTarget") is "undefined" | |
| PASS button.formTarget is "undefined" | |
| Setting non-string for button: | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.getAttribute("formEnctype") is "256" | |
| PASS button.formEnctype is "application/x-www-form-urlencoded" | |
| PASS button.formMethod is "get" | |
| PASS button.getAttribute("formMethod") is "128" | |
| PASS button.formMethod is "get" | |
| PASS button.formTarget is "100" | |
| PASS button.getAttribute("formTarget") is "100" | |
| PASS button.formTarget is "281" | |
| PASS successfullyParsed is true | |
| TEST COMPLETE | |