diff --git a/index.html b/index.html index 6a3678f..90de708 100644 --- a/index.html +++ b/index.html @@ -688,7 +688,7 @@

  • Let |requests| be |options|'s {{CredentialRequestOptions/digital}}'s {{DigitalCredentialRequestOptions/requests}} member.
  • -
  • If |requests| is empty, [=exception/throw=] a {{TypeError}}. +
  • If |requests| [=list/is empty=], [=exception/throw=] a {{TypeError}}.
  • [=List/For each=] |request| of |requests|:
      @@ -696,6 +696,30 @@

      |request| to a JSON string. [=exception/throw|Re-throw=] any [=exception=]. +
    1. Let |protocol| be |requests|'s + {{DigitalCredentialGetRequest/protocol}}. +
    2. +
    3. If |protocol| is not allowed by the user agent, + [=exception/throw=] a {{NotSupportedError}} {{DOMException}}. +
    4. +
    5. If the [=registry/link|specification=] corresponding to + |protocol| defines a [=dictionary=], then: +
        +
      1. Let |request| be |requests|'s + {{DigitalCredentialGetRequest/data}} [=converted to an idl + value|converted=] to that dictionary. [=exception/throw|Rethrow=] + any exceptions. +
      2. +
      +
    6. +
    7. Otherwise, let |request| be |requests|'s + {{DigitalCredentialGetRequest/data}}. +
    8. +
    9. Validate |request| against any validation rules set forth in + the corresponding [=registry/link|specification=]. If any of + |request|'s members are invalid, [=exception/throw=] a + {{TypeError}}. +