Skip to content

Commit ae32976

Browse files
committed
Use range and index correctly
1 parent a97491b commit ae32976

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
@@ -292,13 +292,18 @@ <h3>
292292
<li>Let |providers| be |options|'s {{CredentialRequestOptions/digital}}'s
293293
{{DigitalCredentialRequestOptions/providers}} member.
294294
</li>
295-
<li>If |providers| is empty, [=exception/throw=] a {{TypeError}}.
295+
<li>If |providers| [=list/is empty=], [=exception/throw=] a
296+
{{TypeError}}.
296297
</li>
297-
<li>[=List/For each=] |provider| in |providers|:
298+
<li>Let |range| be [=list/get the indices=] of |providers|.
299+
</li>
300+
<li>[=For each=] |n| of the |range|:
298301
<ol>
299-
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does
300-
not match a [=digital credentials registry/protocol identifier=] from
301-
the [=digital credentials registry=], [=exception/throw=] a
302+
<li>Let |provider| be [=list/item=] at |providers|'s |n| index.
303+
</li>
304+
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does not
305+
match a [=digital credentials registry/protocol identifier=] from the
306+
[=digital credentials registry=], [=exception/throw=] a
302307
{{TypeError}}.
303308
</li>
304309
<li>Let |dictionary| be the [=digital credentials registry/Web IDL
@@ -315,6 +320,9 @@ <h3>
315320
of |request|'s members are invalid, [=exception/throw=] a
316321
{{TypeError}}.
317322
</li>
323+
<li>Set [=list/item=] at |providers|'s |n| index's
324+
{{DigitalCredentialsProvider/request}} to |request|.
325+
</li>
318326
</ol>
319327
</li>
320328
<li>
@@ -390,8 +398,8 @@ <h2 id="protocol-registry">
390398
</h2>
391399
<p>
392400
The following are <dfn data-lt="digital credentials registry">exchange
393-
protocols from the digital credentials registry</dfn>, supported by
394-
this specification.
401+
protocols from the digital credentials registry</dfn>, supported by this
402+
specification.
395403
</p>
396404
<p class="note" title="Official Registry" data-cite="w3c-process">
397405
It is expected that this registry will be become a [=W3C registry=] in

0 commit comments

Comments
 (0)