Skip to content

Commit

Permalink
Merge pull request #1992 from w3c/mm/conditional-ui-autofill-token-order
Browse files Browse the repository at this point in the history
Add note about typical autocomplete combos for conditional UI
  • Loading branch information
nicksteele authored Nov 29, 2023
2 parents 065b836 + 139405f commit 2c63082
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
text: document.domain; url:dom-document-domain
urlPrefix: form-control-infrastructure.html
text: autofill detail token; url: autofill-detail-tokens
text: non-autofill credential type; url: non-autofill-credential-type

spec: url; urlPrefix: https://url.spec.whatwg.org
type: dfn
Expand Down Expand Up @@ -2401,11 +2402,18 @@ When this method is invoked, the user agent MUST execute the following algorithm
<!-- this needs to be indented 2 more levels to get it to render properly -->
<dt id="GetAssn-ConditionalMediation-Interact-FormControl">
If <code>|options|.{{CredentialRequestOptions/mediation}}</code> is {{CredentialMediationRequirement/conditional}}
and the user interacts with an <{input}> or <{textarea}> form control with an <{input/autocomplete}> attribute whose value
contains a `"webauthn"` [=autofill detail token=],
and the user interacts with an <{input}> or <{textarea}> form control with an <{input/autocomplete}> attribute whose
[=non-autofill credential type=] is `"webauthn"`,
</dt>
:: <div class="note">
Note: The `"webauthn"` [=autofill detail token=] must appear immediately after the last [=autofill detail token=]
of type "Normal" or "Contact". For example:

:: 1. If |silentlyDiscoveredCredentials| is not [=list/empty=]:
- `"username webauthn"`
- `"current-password webauthn"`
</div>

1. If |silentlyDiscoveredCredentials| is not [=list/empty=]:

1. Prompt the user to optionally select a [=DiscoverableCredentialMetadata=] (|credentialMetadata|) from |silentlyDiscoveredCredentials|.

Expand Down

0 comments on commit 2c63082

Please sign in to comment.