[w3c/browser-payment-api] Specify UA requirements if “id” field of PaymentShippingOption is not unique (#243)

The [spec section defining the `PaymentShippingOption` dictionary](https://w3c.github.io/browser-payment-api/#paymentshippingoption-dictionary) states, for the `id` field:

> This is a string identifier used to reference this `PaymentShippingOption`. It MUST be unique for a given `PaymentRequest`.

However, the spec doesn’t explicitly define what UAs must do if a `PaymentRequest` constructor is called with a `PaymentShippingOption` instance that has a non-unique (that is, duplicate) `id` field.

It seems like this could be fixed by adding a statement of the specific requirement in the [“PaymentRequest constructor must act as follows“](https://w3c.github.io/browser-payment-api/#paymentrequest-constructor) steps.

-- 
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/243

Received on Thursday, 25 August 2016 07:27:18 UTC