diff --git a/specs/paymentrequest.html b/specs/paymentrequest.html index 0b624bf2..d0f85ebb 100644 --- a/specs/paymentrequest.html +++ b/specs/paymentrequest.html @@ -1058,7 +1058,7 @@
If the web page wishes to update the payment request then it should call updateWith
and provide a promise that will resolve with a PaymentDetails
dictionary containing changed values that the user agent SHOULD present to the user.
The PaymentRequestUpdateEvent constructor MUST set the internal slot [[\waitForUpdate]] +
The PaymentRequestUpdateEvent constructor MUST set the internal slot [[\waitForUpdate]] to false.
The updateWith
method MUST act as follows:
displayItems
field of target@[[\details]].
details
contains a shippingOptions
sequence, then
- copy this value to the shippingOptions
field of target@[[\details]].
- details
contains a shippingOptions
sequence with a
- length of 1, then set newOption to the id
of the only
- ShippingOption
in the sequence.
- details
contains a shippingOptions
sequence with a
- length greater than 1, and if any ShippingOption
in the sequence
- has the selected
field set to true
, then set
- newOption to the id
of the last ShippingOption
- in the sequence with selected
set to true
.
- shippingOption
on target to
- newOption.
+ If details
contains a shippingOptions
sequence, then:
+ shippingOptions
sequence from details
to the
+ shippingOptions
field of target@[[\details]].
+ details
contains a shippingOptions
sequence with a
+ length of 1, then set newOption to the id
of the only
+ ShippingOption
in the sequence.
+ details
contains a shippingOptions
sequence with a
+ length greater than 1, and if any ShippingOption
in the sequence
+ has the selected
field set to true
, then set
+ newOption to the id
of the last ShippingOption
+ in the sequence with selected
set to true
.
+ shippingOption
on target to
+ newOption.
+