web apps: add autocomplete attribute for usernames and passwords

hinted at by chromium developer console
This commit is contained in:
Mechiel Lukkien
2024-11-29 10:40:22 +01:00
parent 96d86ad6f1
commit 09e7ddba9e
6 changed files with 8 additions and 6 deletions

View File

@ -1676,7 +1676,7 @@ const login = async (reason) => {
finally {
fieldset.disabled = false;
}
}, fieldset = dom.fieldset(dom.h1('Admin'), dom.label(style({ display: 'block', marginBottom: '2ex' }), dom.div('Password', style({ marginBottom: '.5ex' })), password = dom.input(attr.type('password'), attr.required(''))), dom.div(style({ textAlign: 'center' }), dom.submitbutton('Login')))))));
}, fieldset = dom.fieldset(dom.h1('Admin'), dom.label(style({ display: 'block', marginBottom: '2ex' }), dom.div('Password', style({ marginBottom: '.5ex' })), password = dom.input(attr.type('password'), attr.autocomplete('current-password'), attr.required(''))), dom.div(style({ textAlign: 'center' }), dom.submitbutton('Login')))))));
document.body.appendChild(root);
password.focus();
});