Validate enctype when method is GET (#72) · w3c/web-share-target@4078bc4
ewilligers
·
2018-11-06
·
via Recent Commits to web-share-target:main
This repository was archived by the owner on Jun 30, 2026. It is now read-only.
| Original file line number | Diff line number | Diff line change |
|---|
@@ -358,6 +358,18 @@ <h3>
|
358 | 358 | <li>If <var>share target</var>["<a data-link-for= |
359 | 359 | "ShareTarget">method</a>"] is an <a data-cite= |
360 | 360 | "!INFRA#ascii-case-insensitive">ASCII case-insensitive</a> match for |
| 361 | + the string <code>"GET"</code> and <var>share |
| 362 | + target</var>["<a data-link-for="ShareTarget">enctype</a>"] is not an |
| 363 | +<a data-cite="!INFRA#ascii-case-insensitive">ASCII |
| 364 | + case-insensitive</a> match for the string |
| 365 | +<code>"application/x-www-form-urlencoded"</code>, <a data-cite= |
| 366 | + "!appmanifest#dfn-issue-a-developer-warning">issue a developer |
| 367 | + warning</a> that the enctype is not supported with method GET, and |
| 368 | + return <code>undefined</code>. |
| 369 | +</li> |
| 370 | +<li>If <var>share target</var>["<a data-link-for= |
| 371 | + "ShareTarget">method</a>"] is an <a data-cite= |
| 372 | + "!INFRA#ascii-case-insensitive">ASCII case-insensitive</a> match for |
361 | 373 | the string <code>"POST"</code> and <var>share |
362 | 374 | target</var>["<a data-link-for="ShareTarget">enctype</a>"] is neither |
363 | 375 | an <a data-cite="!INFRA#ascii-case-insensitive">ASCII |
|
488 | 500 | </p> |
489 | 501 | <p> |
490 | 502 | The <dfn>enctype</dfn> member specifies how the share data is encoded |
491 | | - in the body of a <code>POST</code> request. It is ignored when |
492 | | -<a>method</a> is <code>"GET"</code>. |
| 503 | + in the request. |
493 | 504 | </p> |
494 | 505 | <p> |
495 | 506 | The <dfn>params</dfn> member contains a <a>ShareTargetParams</a> |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。