OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <form method="POST" action="done.html" onsubmit="return true;" id="testform"> | 3 <form method="POST" action="done.html" onsubmit="return true;" id="testform"> |
4 <input type="text" id="username_field" name="username_field"> | 4 <input type="text" id="username_field" name="username_field"> |
5 <input type="password" id="password_field" name="password_field"> | 5 <input type="password" id="password_field" name="password_field"> |
6 <input type="submit" id="input_submit_button" name="input_submit_button"> | 6 <input type="submit" id="input_submit_button" name="input_submit_button"> |
7 </form> | 7 </form> |
8 | 8 |
9 <button id="submit_button" name="submit_button" | 9 <button id="submit_button" name="submit_button" |
10 onclick="document.getElementById('testform').submit()"> | 10 onclick="document.getElementById('testform').submit()"> |
(...skipping 22 matching lines...) Expand all Loading... |
33 Don't add anything inside this form, and don't change the order of the | 33 Don't add anything inside this form, and don't change the order of the |
34 elements. Because the elements have no "id" or "name" attributes, the test | 34 elements. Because the elements have no "id" or "name" attributes, the test |
35 needs to access them by their offsets in the array of the form children. | 35 needs to access them by their offsets in the array of the form children. |
36 --> | 36 --> |
37 <form method="POST" action="done.html" id="testform_elements_no_id_no_name"> | 37 <form method="POST" action="done.html" id="testform_elements_no_id_no_name"> |
38 <input type="text"> | 38 <input type="text"> |
39 <input type="password"> | 39 <input type="password"> |
40 <input type="submit"> | 40 <input type="submit"> |
41 </form> | 41 </form> |
42 | 42 |
| 43 <form method="POST" action="done_and_unrelated_form.html" id="to_unrelated"> |
| 44 <input type="text" id="username_unrelated" name="username_unrelated"> |
| 45 <input type="password" id="password_unrelated" name="password_unrelated"> |
| 46 <input type="submit" id="submit_unrelated" name="submit_unrelated"> |
| 47 </form> |
| 48 |
| 49 <form method="POST" action="failed.html" id="to_failed"> |
| 50 <input type="text" id="username_failed" name="username_failed"> |
| 51 <input type="password" id="password_failed" name="password_failed"> |
| 52 <input type="submit" id="submit_failed" name="submit_failed"> |
| 53 </form> |
| 54 |
43 </body> | 55 </body> |
44 </html> | 56 </html> |
OLD | NEW |