|  | 
| 1 | 1 | { | 
| 2 | 2 |   "spec": { | 
| 3 | 3 |     "title": "Digital Credentials", | 
| 4 |  | -    "url": "https://wicg.github.io/digital-credentials/" | 
|  | 4 | +    "url": "https://w3c-fedid.github.io/digital-credentials/" | 
| 5 | 5 |   }, | 
| 6 | 6 |   "algorithms": [ | 
| 7 | 7 |     { | 
| 8 | 8 |       "name": "DigitalCredential/[[DiscoverFromExternalSource]](origin, options, sameOriginWithAncestors)", | 
| 9 |  | -      "href": "https://wicg.github.io/digital-credentials/#dfn-discoverfromexternalsource-origin-options-sameoriginwithancestors", | 
|  | 9 | +      "href": "https://w3c-fedid.github.io/digital-credentials/#dfn-discoverfromexternalsource-origin-options-sameoriginwithancestors", | 
| 10 | 10 |       "html": "When invoked, the <dfn class=\"export\" data-dfn-for=\"DigitalCredential\" data-idl=\"\" data-dfn-type=\"method\" data-export=\"\" id=\"dfn-discoverfromexternalsource-origin-options-sameoriginwithancestors\" tabindex=\"0\" aria-haspopup=\"dialog\">[[DiscoverFromExternalSource]](origin, options,\n      sameOriginWithAncestors)</dfn> internal method <em class=\"rfc2119\">MUST</em>:", | 
| 11 | 11 |       "rationale": ".algorithm", | 
| 12 | 12 |       "steps": [ | 
|  | 
| 26 | 26 |           "html": "<a data-link-type=\"dfn\" data-cite=\"html\" data-cite-path=\"/interaction.html\" data-cite-frag=\"consume-user-activation\" href=\"https://html.spec.whatwg.org/multipage/interaction.html#consume-user-activation\">Consume user activation</a> of <var>window</var>." | 
| 27 | 27 |         }, | 
| 28 | 28 |         { | 
| 29 |  | -          "html": "Let <var>requests</var> be <var>options</var>'s <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"CredentialRequestOptions\" data-xref-for=\"CredentialRequestOptions\" href=\"https://wicg.github.io/digital-credentials/#dom-credentialrequestoptions-digital\" class=\"internalDFN\" id=\"ref-for-dom-credentialrequestoptions-digital-2\"><code>digital</code></a>'s\n      <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"DigitalCredentialRequestOptions\" data-xref-for=\"DigitalCredentialRequestOptions\" href=\"https://wicg.github.io/digital-credentials/#dom-digitalcredentialrequestoptions-requests\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredentialrequestoptions-requests-2\"><code>requests</code></a> member." | 
|  | 29 | +          "html": "Let <var>requests</var> be <var>options</var>'s <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"CredentialRequestOptions\" data-xref-for=\"CredentialRequestOptions\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-credentialrequestoptions-digital\" class=\"internalDFN\" id=\"ref-for-dom-credentialrequestoptions-digital-2\"><code>digital</code></a>'s\n      <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"DigitalCredentialRequestOptions\" data-xref-for=\"DigitalCredentialRequestOptions\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredentialrequestoptions-requests\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredentialrequestoptions-requests-2\"><code>requests</code></a> member." | 
| 30 | 30 |         }, | 
| 31 | 31 |         { | 
| 32 | 32 |           "html": "If <var>requests</var> is empty, <a data-link-type=\"dfn\" data-link-for=\"exception\" data-xref-for=\"exception\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"dfn-throw\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\">throw</a> a <a data-xref-type=\"_IDL_\" data-link-type=\"exception\" data-lt=\"TypeError\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"exceptiondef-typeerror\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\"><code>TypeError</code></a>." | 
|  | 
| 35 | 35 |           "html": "" | 
| 36 | 36 |         }, | 
| 37 | 37 |         { | 
| 38 |  | -          "html": "Return a <a data-xref-type=\"_IDL_\" data-link-type=\"idl\" data-lt=\"DigitalCredential\" href=\"https://wicg.github.io/digital-credentials/#dom-digitalcredential\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredential-3\"><code>DigitalCredential</code></a>." | 
|  | 38 | +          "html": "Return a <a data-xref-type=\"_IDL_\" data-link-type=\"idl\" data-lt=\"DigitalCredential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredential\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredential-3\"><code>DigitalCredential</code></a>." | 
|  | 39 | +        } | 
|  | 40 | +      ] | 
|  | 41 | +    }, | 
|  | 42 | +    { | 
|  | 43 | +      "name": "DigitalCredential/[[Create]](origin, options, sameOriginWithAncestors)", | 
|  | 44 | +      "href": "https://w3c-fedid.github.io/digital-credentials/#dfn-create-origin-options-sameoriginwithancestors", | 
|  | 45 | +      "html": "When invoked, the <dfn class=\"export\" data-dfn-for=\"DigitalCredential\" data-idl=\"\" data-dfn-type=\"method\" data-export=\"\" id=\"dfn-create-origin-options-sameoriginwithancestors\" tabindex=\"0\" aria-haspopup=\"dialog\">[[Create]](origin, options,\n      sameOriginWithAncestors)</dfn> internal method, if the user agent doesn't\n      support issuance, call the default implementation of <a data-xref-type=\"_IDL_\" data-link-type=\"interface\" data-lt=\"Credential\" data-cite=\"credential-management-1\" data-cite-path=\"\" data-cite-frag=\"credential\" href=\"https://www.w3.org/TR/credential-management-1/#credential\"><code>Credential</code></a>'s\n      <a data-xref-type=\"method\" data-link-type=\"method\" data-link-for=\"Credential\" data-xref-for=\"Credential\" data-lt=\"[[Create]](origin, options, sameOriginWithAncestors)\" data-cite=\"credential-management-1\" data-cite-path=\"\" data-cite-frag=\"dom-credential-create-slot\" href=\"https://www.w3.org/TR/credential-management-1/#dom-credential-create-slot\"><code>[[Create]](<var>origin</var>, <var>options</var>, <var>sameOriginWithAncestors</var>)</code></a>\n      internal method with the same arguments. Otherwise:", | 
|  | 46 | +      "rationale": ".algorithm", | 
|  | 47 | +      "steps": [ | 
|  | 48 | +        { | 
|  | 49 | +          "html": "Let <var>global</var> be <a data-link-type=\"dfn\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"this\" href=\"https://webidl.spec.whatwg.org/#this\">this</a>'s <a data-link-type=\"dfn\" data-cite=\"html\" data-cite-path=\"/webappapis.html\" data-cite-frag=\"concept-relevant-global\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a>." | 
|  | 50 | +        }, | 
|  | 51 | +        { | 
|  | 52 | +          "html": "Let <var>document</var> be <var>global</var>'s <a data-link-type=\"dfn\" data-cite=\"html\" data-cite-path=\"/nav-history-apis.html\" data-cite-frag=\"concept-document-window\" href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-document-window\">associated <code>Document</code></a>." | 
|  | 53 | +        }, | 
|  | 54 | +        { | 
|  | 55 | +          "html": "If <var>document</var> is not a <a data-link-type=\"dfn\" data-link-for=\"Document\" data-xref-for=\"Document\" data-cite=\"html\" data-cite-path=\"/interaction.html\" data-cite-frag=\"fully-active-descendant-of-a-top-level-traversable-with-user-attention\" href=\"https://html.spec.whatwg.org/multipage/interaction.html#fully-active-descendant-of-a-top-level-traversable-with-user-attention\">fully active descendant of a top-level traversable with user attention</a>, <a data-link-type=\"dfn\" data-link-for=\"exception\" data-xref-for=\"exception\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"dfn-throw\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\">throw</a>\n      \"<a data-link-type=\"exception\" data-cite=\"webidl\" data-xref-type=\"exception\" data-cite-path=\"\" data-cite-frag=\"notallowederror\" href=\"https://webidl.spec.whatwg.org/#notallowederror\"><code>NotAllowedError</code></a>\" <a data-xref-type=\"_IDL_\" data-link-type=\"interface\" data-lt=\"DOMException\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"idl-DOMException\" href=\"https://webidl.spec.whatwg.org/#idl-DOMException\"><code>DOMException</code></a>." | 
|  | 56 | +        }, | 
|  | 57 | +        { | 
|  | 58 | +          "html": "If <var>window</var> does not have <a data-link-type=\"dfn\" data-cite=\"html\" data-cite-path=\"/interaction.html\" data-cite-frag=\"transient-activation\" href=\"https://html.spec.whatwg.org/multipage/interaction.html#transient-activation\">transient activation</a>,\n      <a data-link-type=\"dfn\" data-link-for=\"exception\" data-xref-for=\"exception\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"dfn-throw\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\">throw</a> \"<a data-link-type=\"exception\" data-cite=\"webidl\" data-xref-type=\"exception\" data-cite-path=\"\" data-cite-frag=\"notallowederror\" href=\"https://webidl.spec.whatwg.org/#notallowederror\"><code>NotAllowedError</code></a>\" <a data-xref-type=\"_IDL_\" data-link-type=\"interface\" data-lt=\"DOMException\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"idl-DOMException\" href=\"https://webidl.spec.whatwg.org/#idl-DOMException\"><code>DOMException</code></a>." | 
|  | 59 | +        }, | 
|  | 60 | +        { | 
|  | 61 | +          "html": "<a data-link-type=\"dfn\" data-cite=\"html\" data-cite-path=\"/interaction.html\" data-cite-frag=\"consume-user-activation\" href=\"https://html.spec.whatwg.org/multipage/interaction.html#consume-user-activation\">Consume user activation</a> of <var>window</var>." | 
|  | 62 | +        }, | 
|  | 63 | +        { | 
|  | 64 | +          "html": "Let <var>requests</var> be <var>options</var>'s <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"CredentialCreationOptions\" data-xref-for=\"CredentialCreationOptions\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-credentialcreationoptions-digital\" class=\"internalDFN\" id=\"ref-for-dom-credentialcreationoptions-digital-2\"><code>digital</code></a>'s\n      <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"DigitalCredentialCreationOptions\" data-xref-for=\"DigitalCredentialCreationOptions\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredentialcreationoptions-requests\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredentialcreationoptions-requests-2\"><code>requests</code></a> member." | 
|  | 65 | +        }, | 
|  | 66 | +        { | 
|  | 67 | +          "html": "If <var>requests</var> is empty, <a data-link-type=\"dfn\" data-link-for=\"exception\" data-xref-for=\"exception\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"dfn-throw\" href=\"https://webidl.spec.whatwg.org/#dfn-throw\">throw</a> a <a data-xref-type=\"_IDL_\" data-link-type=\"exception\" data-lt=\"TypeError\" data-cite=\"webidl\" data-cite-path=\"\" data-cite-frag=\"exceptiondef-typeerror\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\"><code>TypeError</code></a>." | 
|  | 68 | +        }, | 
|  | 69 | +        { | 
|  | 70 | +          "html": "" | 
|  | 71 | +        }, | 
|  | 72 | +        { | 
|  | 73 | +          "html": "Return a newly constructed <a data-xref-type=\"_IDL_\" data-link-type=\"idl\" data-lt=\"DigitalCredential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredential\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredential-4\"><code>DigitalCredential</code></a> with\n      <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"DigitalCredential\" data-xref-for=\"DigitalCredential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredential-protocol\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredential-protocol-2\"><code>protocol</code></a> initialized to the protocol that was used\n      to issue this credential, and <a data-link-type=\"idl\" data-xref-type=\"attribute|dict-member|const\" data-link-for=\"DigitalCredential\" data-xref-for=\"DigitalCredential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredential-data\" class=\"internalDFN\" id=\"ref-for-dom-digitalcredential-data-2\"><code>data</code></a> initialized to\n      an <a data-link-type=\"dfn|abstract-op\" data-link-for=\"digital credential\" data-xref-for=\"digital credential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dfn-issuance-response\" class=\"internalDFN\" id=\"ref-for-dfn-issuance-response-2\">issuance response</a> defined by that <a data-link-type=\"dfn|abstract-op\" data-link-for=\"digital credential\" data-xref-for=\"digital credential\" href=\"https://w3c-fedid.github.io/digital-credentials/#dfn-issuance-protocol\" class=\"internalDFN\" id=\"ref-for-dfn-issuance-protocol-10\">issuance protocol</a>." | 
| 39 | 74 |         } | 
| 40 | 75 |       ] | 
| 41 | 76 |     } | 
|  | 
0 commit comments