Re: [browser-payment-api] Write-up proposal for shipping address fields (#6)

If we wanted to we could create a method that returns a dictionary instead of an attribute that has an interface but I'm not sure it is a good idea (it would need to be a method to indicate that the dictionary instance would be different every time you call it).

The reason I think having an interface is better is because it is possible to detect the presence of attributes in the interface and if we add new things in future you can feature detect if they are supported.

I think attributes that can be `null` is fine.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/6#issuecomment-195026413

Received on Thursday, 10 March 2016 20:10:37 UTC