Skip to content

Commit 7462051

Browse files
committed
Use range and index correctly
1 parent 3df5ee6 commit 7462051

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

index.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,18 @@ <h3>
304304
<li>Let |providers| be |options|'s {{CredentialRequestOptions/digital}}'s
305305
{{DigitalCredentialRequestOptions/providers}} member.
306306
</li>
307-
<li>If |providers| is empty, [=exception/throw=] a {{TypeError}}.
307+
<li>If |providers| [=list/is empty=], [=exception/throw=] a
308+
{{TypeError}}.
308309
</li>
309-
<li>[=List/For each=] |provider| in |providers|:
310+
<li>Let |range| be [=list/get the indices=] of |providers|.
311+
</li>
312+
<li>[=For each=] |n| of the |range|:
310313
<ol>
311-
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does
312-
not match a [=digital credentials registry/protocol identifier=] from
313-
the [=digital credentials registry=], [=exception/throw=] a
314+
<li>Let |provider| be [=list/item=] at |providers|'s |n| index.
315+
</li>
316+
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does not
317+
match a [=digital credentials registry/protocol identifier=] from the
318+
[=digital credentials registry=], [=exception/throw=] a
314319
{{TypeError}}.
315320
</li>
316321
<li>Let |dictionary| be the [=digital credentials registry/Web IDL
@@ -327,6 +332,9 @@ <h3>
327332
of |request|'s members are invalid, [=exception/throw=] a
328333
{{TypeError}}.
329334
</li>
335+
<li>Set [=list/item=] at |providers|'s |n| index's
336+
{{DigitalCredentialsProvider/request}} to |request|.
337+
</li>
330338
</ol>
331339
</li>
332340
<li>
@@ -402,8 +410,8 @@ <h2 id="protocol-registry">
402410
</h2>
403411
<p>
404412
The following are <dfn data-lt="digital credentials registry">exchange
405-
protocols from the digital credentials registry</dfn>, supported by
406-
this specification.
413+
protocols from the digital credentials registry</dfn>, supported by this
414+
specification.
407415
</p>
408416
<p class="note" title="Official Registry" data-cite="w3c-process">
409417
It is expected that this registry will be become a [=W3C registry=] in

0 commit comments

Comments
 (0)