Skip to content

Commit

Permalink
Editorial: add enumerated attribute table for formmethod
Browse files Browse the repository at this point in the history
Helps with whatwg#9832
  • Loading branch information
keithamus committed Jan 10, 2024
1 parent a2bedd7 commit bf000f4
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -56047,31 +56047,40 @@ 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>
<table>
<thead>
<tr>
<th>Keyword
<th>State
<th>Brief description
<tbody>
<tr>
<td><dfn attr-value for="form/method,button/method"><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/method"><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/method"><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 intented to close the <code>dialog</code> box in which
the form finds itself, if any, and otherwise not submit.</li>
</table>

</ul>

<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>
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
default</i> is the <span data-x="attr-fs-method-GET">GET</span> state.</p>
default</i> is the <span data-x="attr-fs-method-GET">Get</span> state.</p>

<p>The <dfn data-x="concept-fs-method">method</dfn> of an element is one of those states. If the
element is a <span data-x="concept-submit-button">submit button</span> and has a <code
Expand Down Expand Up @@ -59391,8 +59400,8 @@ fur
<thead>
<tr>
<td>
<th> <span data-x="attr-fs-method-GET">GET</span>
<th> <span data-x="attr-fs-method-POST">POST</span>
<th> <span data-x="attr-fs-method-GET">Get</span>
<th> <span data-x="attr-fs-method-POST">Post</span>
<tbody>
<tr>
<th> <code data-x="">http</code>
Expand Down Expand Up @@ -59485,7 +59494,7 @@ fur
<dt><dfn data-x="submit-body">Submit as entity body</dfn>
<dd>
<p><span>Assert</span>: <var>method</var> is <span
data-x="attr-fs-method-post">POST</span>.</p>
data-x="attr-fs-method-post">Post</span>.</p>

<p>Switch on <var>enctype</var>:

Expand Down

0 comments on commit bf000f4

Please sign in to comment.