Skip to content

Commit 7675380

Browse files
committed
refine
1 parent 4cc965c commit 7675380

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ <h3>
688688
<li>Let |requests| be |options|'s {{CredentialRequestOptions/digital}}'s
689689
{{DigitalCredentialRequestOptions/requests}} member.
690690
</li>
691-
<li>If |requests| is empty, [=exception/throw=] a {{TypeError}}.
691+
<li>If |requests| [=list/is empty=], [=exception/throw=] a {{TypeError}}.
692692
</li>
693693
<li>[=List/For each=] |request| of |requests|:
694694
<ol>
@@ -700,25 +700,27 @@ <h3>
700700
allowed by the user agent, [=exception/throw=] a
701701
{{NotSupportedError}} {{DOMException}}.
702702
</li>
703-
<li>If the [=digital credential/exchange protocol=] defines an IDL
704-
[=dictionary=] for [=converted to an idl value|conversion=]:
703+
<li>If |protocol| is not supported by the user agent,
704+
[=exception/throw=] a {{NotSupportedError}} {{DOMException}}.
705+
</li>
706+
<li>If the [=registry/link|specification=] corresponding to
707+
|protocol| defines an IDL {{dictionary}} for [=converted to an idl
708+
value|conversion=]:
705709
<ol>
706710
<li>Let |request| be |requests|'s
707711
{{DigitalCredentialGetRequest/data}} [=converted to an idl
708-
value|converted=] to a |dictionary|. [=exception/throw|Rethrow=]
712+
value|converted=] to that dictionary. [=exception/throw|Rethrow=]
709713
any exceptions.
710714
</li>
711715
</ol>
712716
</li>
713717
<li>Otherwise, let |request| be |requests|'s
714718
{{DigitalCredentialGetRequest/data}}.
715719
</li>
716-
<li>Validate |request| against any validation rules set forth in the
717-
corresponding [=registry/link|Specification=]. If any of |request|'s
718-
members are invalid, [=exception/throw=] a {{TypeError}}.
719-
</li>
720-
<li>Set [=list/item=] at |providers|'s |n| index's
721-
{{DigitalCredentialGetRequest/data}} to |request|
720+
<li>Validate |converted| against any validation rules set forth in
721+
the corresponding [=registry/link|specification=]. If any of
722+
|converted|'s members are invalid, [=exception/throw=] a
723+
{{TypeError}}.
722724
</li>
723725
</ol>
724726
</li>

0 commit comments

Comments
 (0)