Skip to content

Commit

Permalink
Use range and index correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Aug 13, 2024
1 parent 3df5ee6 commit 7462051
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,18 @@ <h3>
<li>Let |providers| be |options|'s {{CredentialRequestOptions/digital}}'s
{{DigitalCredentialRequestOptions/providers}} member.
</li>
<li>If |providers| is empty, [=exception/throw=] a {{TypeError}}.
<li>If |providers| [=list/is empty=], [=exception/throw=] a
{{TypeError}}.
</li>
<li>[=List/For each=] |provider| in |providers|:
<li>Let |range| be [=list/get the indices=] of |providers|.
</li>
<li>[=For each=] |n| of the |range|:
<ol>
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does
not match a [=digital credentials registry/protocol identifier=] from
the [=digital credentials registry=], [=exception/throw=] a
<li>Let |provider| be [=list/item=] at |providers|'s |n| index.
</li>
<li>If |provider|'s {{DigitalCredentialsProvider/protocol}} does not
match a [=digital credentials registry/protocol identifier=] from the
[=digital credentials registry=], [=exception/throw=] a
{{TypeError}}.
</li>
<li>Let |dictionary| be the [=digital credentials registry/Web IDL
Expand All @@ -327,6 +332,9 @@ <h3>
of |request|'s members are invalid, [=exception/throw=] a
{{TypeError}}.
</li>
<li>Set [=list/item=] at |providers|'s |n| index's
{{DigitalCredentialsProvider/request}} to |request|.
</li>
</ol>
</li>
<li>
Expand Down Expand Up @@ -402,8 +410,8 @@ <h2 id="protocol-registry">
</h2>
<p>
The following are <dfn data-lt="digital credentials registry">exchange
protocols from the digital credentials registry</dfn>, supported by
this specification.
protocols from the digital credentials registry</dfn>, supported by this
specification.
</p>
<p class="note" title="Official Registry" data-cite="w3c-process">
It is expected that this registry will be become a [=W3C registry=] in
Expand Down

0 comments on commit 7462051

Please sign in to comment.