mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-22 05:35:49 +00:00
HTMLForm.java - default html <input> type is text, so consider <input> with no type as candidateUsernameInput
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user