@@ -57151,6 +57151,21 @@ form.method === input; // => true</code></pre>
57151
57151
data-x="attr-fs-method-POST-keyword">post</code></dfn>
57152
57152
<td><dfn data-x="attr-fs-method-POST">POST</dfn>
57153
57153
<td>Indicates the <code>form</code> will use the HTTP POST method.
57154
+ <tr>
57155
+ <td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
57156
+ data-x="attr-fs-method-PUT-keyword">put</code></dfn>
57157
+ <td><dfn data-x="attr-fs-method-PUT">PUT</dfn>
57158
+ <td>Indicates the <code>form</code> will use the HTTP PUT method.
57159
+ <tr>
57160
+ <td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
57161
+ data-x="attr-fs-method-PATCH-keyword">patch</code></dfn>
57162
+ <td><dfn data-x="attr-fs-method-PATCH">PATCH</dfn>
57163
+ <td>Indicates the <code>form</code> will use the HTTP PATCH method.
57164
+ <tr>
57165
+ <td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
57166
+ data-x="attr-fs-method-DELETE-keyword">delete</code></dfn>
57167
+ <td><dfn data-x="attr-fs-method-DELETE">DELETE</dfn>
57168
+ <td>Indicates the <code>form</code> will use the HTTP DELETE method.
57154
57169
<tr>
57155
57170
<td><dfn attr-value for="form/method,button/formmethod,input/formmethod"><code
57156
57171
data-x="attr-fs-method-dialog-keyword">dialog</code></dfn>
@@ -57184,13 +57199,26 @@ form.method === input; // => true</code></pre>
57184
57199
<p><input type=submit></p>
57185
57200
</form></code></pre>
57186
57201
57202
+ </div>
57203
+
57204
+ <div class="example">
57205
+
57206
+ <p>The <code data-x="attr-fs-method">method</code> attribute can also specify the value
57207
+ "<code data-x="attr-fs-method-DELETE-keyword">delete</code>", which has also sends the form's
57208
+ values as query parameters, this time with the HTTP DELETE method:
57209
+
57210
+ <pre><code class="html"><form method="delete" action="/delete-user.cgi">
57211
+ <p><label>User ID: <input type=text name=id></label></p>
57212
+ <p><input type=submit></p>
57213
+ </form></code></pre>
57214
+
57187
57215
</div>
57188
57216
57189
57217
<div class="example">
57190
57218
57191
57219
<p>On the other hand, here the <code data-x="attr-fs-method">method</code> attribute is used to
57192
57220
specify the value "<code data-x="attr-fs-method-POST-keyword">post</code>", so that the user's
57193
- message is submitted in the HTTP request's body:</p>
57221
+ message is submitted in the HTTP request's body, with the POST method :</p>
57194
57222
57195
57223
<pre><code class="html"><form method="post" action="/post-message.cgi">
57196
57224
<p><label>Message: <input type=text name=m></label></p>
@@ -57199,6 +57227,20 @@ form.method === input; // => true</code></pre>
57199
57227
57200
57228
</div>
57201
57229
57230
+ <div class="example">
57231
+
57232
+ <p>The <code data-x="attr-fs-method">method</code> attribute also supports the
57233
+ "<code data-x="attr-fs-method-PUT-keyword">put</code>" and
57234
+ "<code data-x="attr-fs-method-PATCH-keyword">patch</code>" keywords, which likewise submit the
57235
+ form's data as part of the request body, with the respective HTTP method:
57236
+
57237
+ <pre><code class="html"><form method="put" action="/message/123.cgi">
57238
+ <p><label>Message: <input type=text name=m></label></p>
57239
+ <p><input type=submit value="Save edited message"></p>
57240
+ </form></code></pre>
57241
+
57242
+ </div>
57243
+
57202
57244
<div class="example">
57203
57245
57204
57246
<p>In this example, a <code>form</code> is used with a <code>dialog</code>. The <code
@@ -60492,31 +60534,52 @@ fur
60492
60534
<td>
60493
60535
<th> <span data-x="attr-fs-method-GET">GET</span>
60494
60536
<th> <span data-x="attr-fs-method-POST">POST</span>
60537
+ <th> <span data-x="attr-fs-method-POST">PUT</span>
60538
+ <th> <span data-x="attr-fs-method-POST">PATCH</span>
60539
+ <th> <span data-x="attr-fs-method-POST">DELETE</span>
60495
60540
<tbody>
60496
60541
<tr>
60497
60542
<th> <code data-x="">http</code>
60498
60543
<td> <span data-x="submit-mutate-action">Mutate action URL</span>
60499
60544
<td> <span data-x="submit-body">Submit as entity body</span>
60545
+ <td> <span data-x="submit-body">Submit as entity body</span>
60546
+ <td> <span data-x="submit-body">Submit as entity body</span>
60547
+ <td> <span data-x="submit-mutate-action">Mutate action URL</span>
60500
60548
<tr>
60501
60549
<th> <code data-x="">https</code>
60502
60550
<td> <span data-x="submit-mutate-action">Mutate action URL</span>
60503
60551
<td> <span data-x="submit-body">Submit as entity body</span>
60552
+ <td> <span data-x="submit-body">Submit as entity body</span>
60553
+ <td> <span data-x="submit-body">Submit as entity body</span>
60554
+ <td> <span data-x="submit-mutate-action">Mutate action URL</span>
60504
60555
<tr>
60505
60556
<th> <code data-x="">ftp</code>
60506
60557
<td> <span data-x="submit-get-action">Get action URL</span>
60507
60558
<td> <span data-x="submit-get-action">Get action URL</span>
60559
+ <td> <span data-x="submit-get-action">Get action URL</span>
60560
+ <td> <span data-x="submit-get-action">Get action URL</span>
60561
+ <td> <span data-x="submit-get-action">Get action URL</span>
60508
60562
<tr>
60509
60563
<th> <code data-x="">javascript</code>
60510
60564
<td> <span data-x="submit-get-action">Get action URL</span>
60511
60565
<td> <span data-x="submit-get-action">Get action URL</span>
60566
+ <td> <span data-x="submit-get-action">Get action URL</span>
60567
+ <td> <span data-x="submit-get-action">Get action URL</span>
60568
+ <td> <span data-x="submit-get-action">Get action URL</span>
60512
60569
<tr>
60513
60570
<th> <code data-x="">data</code>
60514
60571
<td> <span data-x="submit-mutate-action">Mutate action URL</span>
60515
60572
<td> <span data-x="submit-get-action">Get action URL</span>
60573
+ <td> <span data-x="submit-get-action">Get action URL</span>
60574
+ <td> <span data-x="submit-get-action">Get action URL</span>
60575
+ <td> <span data-x="submit-get-action">Mutate action URL</span>
60516
60576
<tr>
60517
60577
<th> <code data-x="">mailto</code>
60518
60578
<td> <span data-x="submit-mailto-headers">Mail with headers</span>
60519
60579
<td> <span data-x="submit-mailto-body">Mail as body</span>
60580
+ <td> <span data-x="submit-mailto-body">Mail as body</span>
60581
+ <td> <span data-x="submit-mailto-body">Mail as body</span>
60582
+ <td> <span data-x="submit-mailto-headers">Mail with headers</span>
60520
60583
</table>
60521
60584
60522
60585
<p>If <var>scheme</var> is not one of those listed in this table, then the behavior is
@@ -60584,8 +60647,9 @@ fur
60584
60647
60585
60648
<dt><dfn data-x="submit-body">Submit as entity body</dfn>
60586
60649
<dd>
60587
- <p><span>Assert</span>: <var>method</var> is <span
60588
- data-x="attr-fs-method-post">POST</span>.</p>
60650
+ <p><span>Assert</span>: <var>method</var> is <span data-x="attr-fs-method-post">POST</span>,
60651
+ <span data-x="attr-fs-method-PUT">PUT</span>, or
60652
+ <span data-x="attr-fs-method-PATCH">PATCH</span>.</p>
60589
60653
60590
60654
<p>Switch on <var>enctype</var>:
60591
60655
0 commit comments