whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.07k stars 2.65k forks source link

Add a "full-address" autofill field (autocomplete attribute) #2105

Open sideshowbarker opened 7 years ago

sideshowbarker commented 7 years ago

See the discussion at https://github.com/w3c/browser-payment-api/issues/326#issuecomment-262828709.

The Payment Request API has need to represent form data for a full address as a single field rather than spread across a set of multiple fields.

The HTML spec currently has a street-address autofill field which can contain multiple lines of data, but is defined as holding just the street address and not defined as being allowed to contain the city name, country name, postal code, etc., data (for which there are other existing autofill fields).

annevk commented 7 years ago

Which fields would this encompass?

street-address, address-level*, country, country-name, and postcal code?

name/organization too?

sideshowbarker commented 7 years ago

Which fields would this encompass?

As far the need for the Payment Request API, it’s data for a shipping address. So anything that would be appropriate in a shipping address.

street-address, address-level*, country, country-name, and postal code?

Yeah, those I think

name/organization too?

Those I’m less sure about but I guess that the name/organization are sometimes needed in shipping address to route the shipped goods to the correct person at the physical address (building/floor/department) the goods are shipped to, then the “full address” would need to include the name/organization too.

annevk commented 7 years ago

I know for a fact that in Switzerland you need to include the name of a person for personal mail.

sideshowbarker commented 7 years ago

I know for a fact that in Switzerland you need to include the name of a person for personal mail.

So yeah I think we’d need for it to encompass both name for the case of shipping to a personal-mail full address and also organization for the case of shipping to a company full address.