Skip to content

Commit

Permalink
Editorial: add enumerated attribute table for form/autocomplete
Browse files Browse the repository at this point in the history
Helps with #9832.
  • Loading branch information
keithamus authored Dec 8, 2023
1 parent 17402ca commit ecc06cd
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -45527,20 +45527,30 @@ interface <dfn interface>HTMLFormElement</dfn> : <span>HTMLElement</span> {

<p>The <dfn element-attr for="form"><code
data-x="attr-form-autocomplete">autocomplete</code></dfn> attribute is an <span>enumerated
attribute</span>. The attribute has two states. The <dfn><code
data-x="attr-form-autocomplete-on">on</code></dfn> keyword maps to the <dfn
data-x="attr-form-autocomplete-on-state">on</dfn> state, and the <dfn><code
data-x="attr-form-autocomplete-off">off</code></dfn> keyword maps to the <dfn
data-x="attr-form-autocomplete-off-state">off</dfn> state. The attribute may also be omitted. The
<i data-x="missing value default">missing value default</i> and <i data-x="invalid value
default">invalid value default</i> are both the <span
data-x="attr-form-autocomplete-on-state">on</span> state. The <span
data-x="attr-form-autocomplete-off-state">off</span> state indicates that by default, form
controls in the form will have their <span>autofill field name</span> set to "<code
data-x="attr-fe-autocomplete-off">off</code>"; the <span
data-x="attr-form-autocomplete-on-state">on</span> state indicates that by default, form controls
in the form will have their <span>autofill field name</span> set to "<code
data-x="attr-fe-autocomplete-on">on</code>".</p>
attribute</span> with the following keywords and states:</p>

<table>
<thead>
<tr>
<th>Keyword
<th>State
<th>Brief description
<tbody>
<tr>
<td><dfn attr-value for="form/autocomplete"><code data-x="attr-form-autocomplete-on">on</code></dfn>
<td><dfn data-x="attr-form-autocomplete-on-state">on</dfn>
<td>Form controls will have their <span>autofill field name</span> set to "<code
data-x="attr-fe-autocomplete-on">on</code>" by default.
<tr>
<td><dfn attr-value for="form/autocomplete"><code data-x="attr-form-autocomplete-off">off</code></dfn>
<td><dfn data-x="attr-form-autocomplete-off-state">off</dfn>
<td>Form controls will have their <span>autofill field name</span> set to "<code
data-x="attr-fe-autocomplete-off">off</code>" by default.
</table>

<p>The attribute's <i data-x="missing value default">missing value default</i> and <i
data-x="invalid value default">invalid value default</i> are both the <span
data-x="attr-form-autocomplete-on-state">on</span> state.</p>

<p>The <code data-x="attr-fs-action">action</code>, <code data-x="attr-fs-enctype">enctype</code>,
<code data-x="attr-fs-method">method</code>, <code data-x="attr-fs-novalidate">novalidate</code>,
Expand Down

0 comments on commit ecc06cd

Please sign in to comment.