OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- Password form with the username and password fields having ambiguity in id
attribute. --> |
| 3 <form id="ambiguous_form" method="POST" action="done.html"> |
| 4 <label>Username: </label><input type="text" id="ambiguous_id" /> |
| 5 <label>Password: </label><input type="password" id="ambiguous_id" /> |
| 6 <input type="submit" /> |
| 7 </form> |
| 8 |
| 9 <!-- Password form having username and password fields without name and id attri
bute. --> |
| 10 <form id="no_name_id_form" method="POST" action="done.html"> |
| 11 <label>Username: </label> <input type="text" placeholder="username" /> |
| 12 <label>Password: </label> <input type="password" placeholder="password" /> |
| 13 <input type="submit" /> |
| 14 </form> |
| 15 |
| 16 <!-- change password form having username and password fields without name and i
d attribute. --> |
| 17 <form id="change_pwd_no_name_id" method="POST" action="done.html"> |
| 18 <label>Username: </label> <input type="text" placeholder="username" /> |
| 19 <label>Old Password: </label> <input type="password" placeholder="Old Password
" autocomplete="current-password" /> |
| 20 <label>New Password: </label> <input type="password" placeholder="New password
" autocomplete="new-password" /> |
| 21 <input type="submit" /> |
| 22 </form> |
OLD | NEW |