Re: [w3c/browser-payment-api] Should user agent validate currency? (#490)

Regarding localization and UAs: we could have a fallback formatting for unknown currencies (like "<value> <currency>"), but I see that this can be problematic with f.ex. RTL. It also depends a lot on how the UA chooses to implement the UI for this. One could f.ex. separate the value and the currency instead of having both of them combined in one string.

It is maybe problematic to have any strict validation requirements in the spec (and throw TypeError) if the currency isn't supported by NumberFormat or similar classes? Implementations will then only accept known currencies and will have to be updated to support new ones.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/490#issuecomment-290686279

Received on Friday, 31 March 2017 11:17:30 UTC