Skip to content

Commit

Permalink
inputNames: 'label' attr for compat w aliexpress.com
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxor1337 committed May 8, 2024
1 parent 5fb3b2c commit c0331a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/page.js
Expand Up @@ -84,6 +84,13 @@ PassFF.Page = (function () {
inputNames.push(placeholder);
}

// there is actually no such thing as a "label" attribute, but aliexpress.com uses it
// https://github.com/passff/passff-host/issues/68
let label = input.getAttribute('label');
if (label) {
inputNames.push(label);
}

let autocomplete = getAutocompleteAttr(input);
if (autocomplete && ["on","off"].indexOf(autocomplete) === -1) {
inputNames.push(autocomplete);
Expand Down

0 comments on commit c0331a0

Please sign in to comment.