Skip to content

Commit

Permalink
convert switch steps to colon-denotation
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffH authored and JeffH committed Sep 29, 2017
1 parent 1f7a9c6 commit 8aeb8ed
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions index.bs
Expand Up @@ -709,23 +709,20 @@ When this method is invoked, the user agent MUST execute the following algorithm
responses from the authenticators:
<dl class="switch">

<dt>If the |adjustedTimeout| timer expires,</dt>
<dd>[=set/For each=] |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on |authenticator|
: If the |adjustedTimeout| timer expires,
:: [=set/For each=] |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on |authenticator|
and [=set/remove=] |authenticator| from |issuedRequests|.</dd>

<dt>If any |authenticator| returns a status indicating that the user cancelled the operation,</dt>
<dd>
1. [=set/Remove=] |authenticator| from |issuedRequests|.
: If any |authenticator| returns a status indicating that the user cancelled the operation,</dt>
:: 1. [=set/Remove=] |authenticator| from |issuedRequests|.
2. [=set/For each=] remaining |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on
|authenticator| and [=set/remove=] it from |issuedRequests|.
</dd>

<dt>If any |authenticator| returns an error status,</dt>
<dd>[=set/Remove=] |authenticator| from |issuedRequests|.</dd>
: If any |authenticator| returns an error status,
:: [=set/Remove=] |authenticator| from |issuedRequests|.</dd>

<dt>If any |authenticator| indicates success,</dt>
<dd>
1. [=set/Remove=] |authenticator| from |issuedRequests|.
: If any |authenticator| indicates success,
:: 1. [=set/Remove=] |authenticator| from |issuedRequests|.
2. Let |attestationObject| be a new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the
bytes of the value returned from the successful [=authenticatorMakeCredential=] operation (which is
<code>attObj</code>, as defined in [[#generating-an-attestation-object]]).
Expand All @@ -748,7 +745,7 @@ When this method is invoked, the user agent MUST execute the following algorithm
5. [=set/For each=] remaining |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on
|authenticator| and [=set/remove=] it from |issuedRequests|.
6. Return |value| and terminate this algorithm.
</dd>

</dl>

1. Return a {{DOMException}} whose name is "{{NotAllowedError}}".
Expand Down

0 comments on commit 8aeb8ed

Please sign in to comment.