Move fullname containsOptions to Identity constants
This commit is contained in:
parent
306b7e38c3
commit
30f7e29773
|
@ -596,7 +596,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||
// ref https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
|
||||
// ref https://developers.google.com/web/fundamentals/design-and-ux/input/forms/
|
||||
if (!fillFields.name && this.isFieldMatch(f[attr],
|
||||
IdentityAutoFillConstants.FullNameFieldNames, ['full-name', 'your-name'])) {
|
||||
IdentityAutoFillConstants.FullNameFieldNames, IdentityAutoFillConstants.FullNameFieldNameValues)) {
|
||||
fillFields.name = f;
|
||||
break;
|
||||
} else if (!fillFields.firstName && this.isFieldMatch(f[attr],
|
||||
|
|
|
@ -275,6 +275,8 @@ export class IdentityAutoFillConstants {
|
|||
|
||||
static readonly FullNameFieldNames: string[] = ["name", "full-name", "your-name"];
|
||||
|
||||
static readonly FullNameFieldNameValues: string[] = ["full-name", "your-name"];
|
||||
|
||||
static readonly TitleFieldNames: string[] = ["honorific-prefix", "prefix", "title"];
|
||||
|
||||
static readonly FirstnameFieldNames: string[] = [
|
||||
|
|
Loading…
Reference in New Issue