Skip to content

Commit

Permalink
Editorial: add enumerated attribute table for method/formmethod
Browse files Browse the repository at this point in the history
Helps with #9832.
  • Loading branch information
keithamus authored Jan 31, 2024
1 parent f43b2d3 commit dcf589e
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -56029,25 +56029,34 @@ form.method === input; // => true</code></pre>
content attributes are <span data-x="enumerated attribute">enumerated attributes</span> with the
following keywords and states:</p>

<ul>
<li>The keyword <dfn attr-value for="form/method,button/method"><code
data-x="attr-fs-method-GET-keyword">get</code></dfn>, mapping to the state <dfn
data-x="attr-fs-method-GET">GET</dfn>, indicating the HTTP GET method.</li>

<li>The keyword <dfn attr-value for="form/method,button/method"><code
data-x="attr-fs-method-POST-keyword">post</code></dfn>, mapping to the state <dfn
data-x="attr-fs-method-POST">POST</dfn>, indicating the HTTP POST method.</li>

<li>The keyword <dfn attr-value for="form/method,button/method"><code
data-x="attr-fs-method-dialog-keyword">dialog</code></dfn>, mapping to the state <dfn
data-x="attr-fs-method-dialog">dialog</dfn>, indicating that submitting the <code>form</code> is
intended to close the <code>dialog</code> box in which the form finds itself, if any, and
otherwise not submit.</li>
</ul>
<table>
<thead>
<tr>
<th>Keyword
<th>State
<th>Brief description
<tbody>
<tr>
<td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
data-x="attr-fs-method-GET-keyword">get</code></dfn>
<td><dfn data-x="attr-fs-method-GET">GET</dfn>
<td>Indicates the <code>form</code> will use the HTTP GET method.
<tr>
<td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
data-x="attr-fs-method-POST-keyword">post</code></dfn>
<td><dfn data-x="attr-fs-method-POST">POST</dfn>
<td>Indicates the <code>form</code> will use the HTTP POST method.
<tr>
<td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
data-x="attr-fs-method-dialog-keyword">dialog</code></dfn>
<td><dfn data-x="attr-fs-method-dialog">Dialog</dfn>
<td>Indicates the <code>form</code> is intended to close the <code>dialog</code> box in which
the form finds itself, if any, and otherwise not submit.
</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-fs-method-GET">GET</span> state.</p>
<p>The <code data-x="attr-fs-method">method</code> 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-fs-method-GET">GET</span> state.</p>

<p>The <code data-x="attr-fs-formmethod">formmethod</code> attribute has no <i data-x="missing
value default">missing value default</i>, and its <i data-x="invalid value default">invalid value
Expand Down

0 comments on commit dcf589e

Please sign in to comment.