Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ted Thibodeau Jr <[email protected]>
  • Loading branch information
npm1 and TallTed authored Oct 12, 2023
1 parent cd22972 commit 9c63ea2
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -410,21 +410,23 @@ dictionary IdentityCredentialErrorInit {
</pre>

<div algorithm="IdentityCredentialError constructor">
The {{IdentityCredentialError/constructor()}}, given a |realm|, a {{DOMString}} |message| and a
{{IdentityCredentialErrorInit}} |options| must run the following steps:
Given a |realm|, a {{DOMString}} |message|, and an {{IdentityCredentialErrorInit}}
|options|, the {{IdentityCredentialError/constructor()}} must run the following steps:
1. Invoke the {{DOMException}}'s {{DOMException/constructor()}}, passing |realm| and |message|.
1. Set <a>this</a>.{{IdentityCredentialError/code}} to |options|.{{IdentityCredentialError/code}}
if it is present in |options|, or to "" otherwise.
1. Set <a>this</a>.{{IdentityCredentialError/url}} to |options|.{{IdentityCredentialError/url}}
if it is present in |options|, or to "" otherwise.
1. If |options|.{{IdentityCredentialError/code}} is present in |options|,
set <a>this</a>.{{IdentityCredentialError/code}} to it; otherwise, set
<a>this</a>.{{IdentityCredentialError/code}} to "".
1. If |options|.{{IdentityCredentialError/url}} is present in |options|,
set <a>this</a>.{{IdentityCredentialError/url}} to it; otherwise, set
<a>this</a>.{{IdentityCredentialError/url}} to "".
</div>

<dl>
: <b>{{IdentityCredentialError/code}}</b>
:: The {{IdentityCredentialError/code}}'s attribute getter returns the value it is set to.
:: The {{IdentityCredentialError/code}}'s attribute getter returns the value to which it is set.
It represents the type of error which resulted in an {{IdentityCredential}} not being created.
: <b>{{IdentityCredentialError/url}}</b>
:: The {{IdentityCredentialError/url}}'s attribute getter returns the value it is set to.
:: The {{IdentityCredentialError/url}}'s attribute getter returns the value to which it is set.
It represents a URL where the user can learn more information about the error.
</dl>

Expand Down Expand Up @@ -1021,7 +1023,7 @@ To <dfn>fetch an identity assertion</dfn> given a {{USVString}}
1. Let |credential| be a new {{IdentityCredential}} given |globalObject|'s
[=global object/realm=].
1. Set |credential|'s {{IdentityCredential/token}} to |token|.
1. Otherwise, i.e. if |json|[|error|] [=map/exists=]:
1. Otherwise (i.e., if |json|[|error|] [=map/exists=]):
1. If |json|[|error|] is not an [=ordered map=], set |credential| to a new
{{IdentityCredentialError}} given |globalObject|'s [=global object/realm=] and
"IdentityCredentialError" and return.
Expand Down

0 comments on commit 9c63ea2

Please sign in to comment.