diff --git a/spec/index.bs b/spec/index.bs index a057ac1a7..497419984 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -410,21 +410,23 @@ dictionary IdentityCredentialErrorInit {
-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 this.{{IdentityCredentialError/code}} to |options|.{{IdentityCredentialError/code}} - if it is present in |options|, or to "" otherwise. - 1. Set this.{{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 this.{{IdentityCredentialError/code}} to it; otherwise, set + this.{{IdentityCredentialError/code}} to "". + 1. If |options|.{{IdentityCredentialError/url}} is present in |options|, + set this.{{IdentityCredentialError/url}} to it; otherwise, set + this.{{IdentityCredentialError/url}} to "".
: {{IdentityCredentialError/code}} - :: 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. : {{IdentityCredentialError/url}} - :: 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.
@@ -1021,7 +1023,7 @@ To fetch an identity assertion 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.