*Part* of address-line1, still use autocomplete as normal?

Any comments appreciated re the following.

SUMMARY
If I have *two* INPUTS representing line 1 of an address, one for the number of a street and the other for its name, should both have an "autocomplete" attribute set to "address-line1"?


DETAIL
I am working with a legacy app that for the foreseeable future captures address info in a form where the fields include approximately:

YOUR_STREET_NUMBER

YOUR_STREET_NAME

I want to tell my developers that since they need to follow "SC 1.3.5: Identify Input Purpose" [1] they need to use "autocomplete" on both INPUTS. However, while it is clear they should use "address-line1" [2] if there was *one* field capturing an address line such as "42 Ultimate Street", I am uncertain if it is still correct to use when there are two fields each holding only part of "line 1".

I assume it *is* correct and hope current or future user-agents will work out what to do with the meta provided, but not being sure I thought I should ask here.

[1] https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose.html
[2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls:-the-autocomplete-attribute:attr-fe-autocomplete-address-line1

Regards,

Alan

. . . . -   . . - - -
Alan Bristow ( he / him / il )
Web Developer / Développeur Web
Elections Canada / Élections Canada
alan.bristow@elections.ca<mailto:alan.bristow@elections.ca>

Received on Wednesday, 7 June 2023 15:24:51 UTC