mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
HTMLForm.java - default html <input> type is text, so consider <input> with no type as candidateUsernameInput
This commit is contained in:
1 parent
bea5c6f267
commit
7bd010e3c7
1 file changed
+2
-1
@@ -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