Skip to content

Commit 85fea21

Browse files
ianbjacobsMarcos Cáceres
authored and
Marcos Cáceres
committed
Editorial: add id for Features at risk + phrasing (w3c#559)
1 parent 50df6d6 commit 85fea21

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

index.html

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
issues on GitHub (see links below). All comments are welcome.
8989
</p>
9090
</div>
91-
<section>
91+
<section id="at-risk">
9292
<h2>
9393
Features at risk
9494
</h2>
@@ -239,13 +239,15 @@ <h2>
239239
site, selecting a "Power Up" in an interactive game, or paying at a
240240
kiosk in a parking structure). The <a>PaymentRequest</a> allows
241241
developers to exchange information with the <a>user agent</a> while the
242-
user is providing input before approving or denying a payment request.
242+
user is providing input (up to the point of user approval or denial of
243+
the payment request).
243244
</p>
244245
<p data-link-for="PaymentRequest">
245-
The <a>user agent</a> as a whole has a single <dfn>payment request is
246-
showing</dfn> boolean, initially false. This is used to prevent
247-
multiple <a>PaymentRequest</a>s from being shown, via their
248-
<a>show()</a> method, at the same time.
246+
Because the simultaneous display of multiple <a>PaymentRequest</a> user
247+
interfaces might confuse the user, this specification limits the
248+
<a>user agent</a> to displaying one at a time via the <a>show()</a>
249+
method. This is ensured by a <dfn>payment request is showing</dfn>
250+
boolean.
249251
</p>
250252
<p data-link-for="PaymentRequest">
251253
The <a>shippingAddress</a>, <a>shippingOption</a>, and
@@ -619,10 +621,10 @@ <h2>
619621
</p>
620622
<p>
621623
It is not possible to show multiple <a>PaymentRequest</a>s at the
622-
same time within one <a>user agent</a>. Calling <a>show()</a> if
623-
another <a>PaymentRequest</a> is already showing, even due to some
624-
other site, will return a promise rejected with an
625-
"<a>AbortError</a>" <a>DOMException</a>.
624+
same time within one <a>user agent</a>. If a <a>PaymentRequest</a>
625+
is already showing, calling <a>show()</a> —from any Web site— will
626+
return a promise rejected with an "<a>AbortError</a>"
627+
<a>DOMException</a>.
626628
</p>
627629
</div>
628630
<p>
@@ -776,6 +778,10 @@ <h2>
776778
for the request to another app. In this situation, <a>abort()</a>
777779
will reject the returned <a>Promise</a>.
778780
</p>
781+
<p class="note">
782+
See also the algorithm when the <a>user aborts the payment
783+
request</a>.
784+
</p>
779785
</div>
780786
<p>
781787
The <a>abort()</a> method MUST act as follows:
@@ -1091,6 +1097,11 @@ <h2>
10911097
will be <a>JSON-serialized</a>.
10921098
</dd>
10931099
</dl>
1100+
<p class="note">
1101+
The value of <code>supportedMethods</code> was changed from array to
1102+
string, but the name was left as a plural to maintain compatibility
1103+
with existing content on the Web.
1104+
</p>
10941105
</section>
10951106
<section data-dfn-for="PaymentCurrencyAmount" data-link-for=
10961107
"PaymentCurrencyAmount">
@@ -1831,9 +1842,9 @@ <h2>
18311842
</h2>
18321843
<p>
18331844
An object that provides a <a>payment method</a> specific message used
1834-
by the merchant to process the transaction and determine successful
1835-
fund transfer. This data is returned by the <a>payment method</a>
1836-
specific code that satisfies the payment request.
1845+
by the merchant to process the transaction and determine payment
1846+
status. This data is returned by the <a>payment method</a> specific
1847+
code that satisfies the payment request.
18371848
</p>
18381849
</section>
18391850
<section>
@@ -2426,7 +2437,7 @@ <h2>
24262437
state since the developer hasn't successfully handled the change
24272438
event. Consequently, the <a>PaymentRequest</a> moves to a
24282439
"<a>closed</a>" state. The error is signaled to the developer
2429-
through the rejection of the <a>[[\acceptPromise]]</a>, i.e. the
2440+
through the rejection of the <a>[[\acceptPromise]]</a>, i.e., the
24302441
promise returned by <a data-lt="PaymentRequest.show">show()</a>.
24312442
</p>
24322443
<p>
@@ -2557,7 +2568,8 @@ <h2>
25572568
<ol class="algorithm">
25582569
<li>If the <var>request</var>.<a>[[\updating]]</a> is true, then
25592570
terminate this algorithm and take no further action. Only one update
2560-
may take place at a time. This should never occur.
2571+
may take place at a time. The <a>user agent</a> should ensure that
2572+
this never occurs.
25612573
</li>
25622574
<li>If the <var>request</var>.<a>[[\state]]</a> is not set to
25632575
"<a>interactive</a>", then terminate this algorithm and take no
@@ -2601,7 +2613,8 @@ <h2>
26012613
attribute of <var>request</var> is null or if the <a data-lt=
26022614
"PaymentRequest.shippingOption">shippingOption</a> attribute of <var>
26032615
request</var> is null, then terminate this algorithm and take no
2604-
further action. This should never occur.
2616+
further action. The <a>user agent</a> should ensure that this never
2617+
occurs.
26052618
</li>
26062619
<li>Let <var>response</var> be a new <a>PaymentResponse</a>.
26072620
</li>

0 commit comments

Comments
 (0)