Skip to content

Commit e745dc4

Browse files
JeffHJeffH
authored andcommitted
address some of jyasskin's comments on 6bdadaa
1 parent 9505618 commit e745dc4

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

index.src.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ <h5 id="algorithm-store-cred" algorithm>`[[Store]]` internal method</h5>
335335
</ul>
336336

337337
<h5 id="algorithm-create-cred" algorithm>`[[Create]]` internal method</h5>
338-
<dfn for="Credential" method export>\[[Create]](origin, options)</dfn> is called
338+
<dfn for="Credential" method export>\[[Create]](origin, options)</dfn> is called
339339
[=in parallel=] with an [=environment settings object/origin=] and a {{CredentialCreationOptions}},
340340
and either:
341341

342-
* creates a {{Credential}}, or,
343-
* does not create a credential and returns `null`, or,
342+
* creates a {{Credential}}, or
343+
* does not create a credential and returns `null`, or
344344
* returns an error if creation fails due to exceptional situations
345345
(for example, incorrect options could produce a {{TypeError}}).
346346

@@ -879,17 +879,15 @@ <h4 id="algorithm-create" algorithm>Create a `Credential`</h4>
879879
1. Let |r| be the result of executing |interfaces|[0]'s {{Credential/[[Create]](origin, options)}}
880880
internal method given |origin| and |options|.
881881

882-
2. If |r| is an [=exception=] or `null`, [=reject=] |p| with |r|, and terminate these substeps.
882+
2. If |r| is an [=exception=], [=reject=] |p| with |r|, and terminate these substeps.
883883

884-
3. If |r| is a {{Credential}}, [=resolve=] |p| with |r|, and terminate these substeps.
884+
3. If |r| is a {{Credential}} or `null`, [=resolve=] |p| with |r|, and terminate these substeps.
885885

886886
4. Assert: |r| is a <code>[=constructCredential=]</code> algorithm.
887887

888888
5. [=Queue a task=] on |global|'s [=DOM manipulation task source=] to run the following substeps:
889889

890-
1. Let |result| be the result of [=promise-calling=] |r| given |global|.
891-
2. If |result| is an [=exception=], [=reject=] |p| with |result| and terminate these substeps.
892-
3. [=Resolve=] |p| with |result|.
890+
1. [=Resolve=] |p| with the result of [=promise-calling=] |r| given |global|.
893891

894892
9. Return |p|.
895893
</ol>
@@ -1205,7 +1203,7 @@ <h4 algorithm id="collectfromcredentialstore-passwordcredential">
12051203
</h4>
12061204

12071205
<dfn for="PasswordCredential" method>\[[CollectFromCredentialStore]](origin, options)</dfn> is called
1208-
with an [=environment settings object/origin=] (|origin|) and a {{CredentialRequestOptions}} (|options|),
1206+
with an [=origin=] (|origin|) and a {{CredentialRequestOptions}} (|options|),
12091207
and returns a set of {{Credential}} objects from
12101208
the [=credential store=]. If no matching {{Credential}} objects are available, the returned set
12111209
will be empty.
@@ -1297,7 +1295,7 @@ <h4 algorithm id="construct-passwordcredential-form">
12971295
</h4>
12981296

12991297
To <dfn abstract-op>Create a `PasswordCredential` from an `HTMLFormElement`</dfn>, given an
1300-
{{HTMLFormElement}} (|form|) and an [=environment settings object/origin=] (|origin|), run these steps.
1298+
{{HTMLFormElement}} (|form|) and an [=origin=] (|origin|), run these steps.
13011299

13021300
Note: [[#examples-post-signin]] and [[#examples-change-password]] provide examples of the intended
13031301
usage.

0 commit comments

Comments
 (0)