HTMLForm.java - default html <input> type is text, so consider <input> with no type as candidateUsernameInput

This commit is contained in:
Noah Levitt
2013-05-13 22:53:37 -07:00
parent bea5c6f267
commit 7bd010e3c7
@@ -61,7 +61,8 @@ public class HTMLForm {
input.name = name;
input.value = value;
allInputs.add(input);
if("text".equalsIgnoreCase(type)||"email".equalsIgnoreCase(type)) {
// default input type is text per html standard
if(type == null || "text".equalsIgnoreCase(type) || "email".equalsIgnoreCase(type)) {
candidateUsernameInputs.add(input);
} else if ("password".equalsIgnoreCase(type)) {
candidatePasswordInputs.add(input);