Skip to content

Commit 4078bc4

Browse files
authored
Validate enctype when method is GET (#72)
1 parent 76eabad commit 4078bc4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

level-2/index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,18 @@ <h3>
358358
<li>If <var>share target</var>["<a data-link-for=
359359
"ShareTarget">method</a>"] is an <a data-cite=
360360
"!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
361373
the string <code>"POST"</code> and <var>share
362374
target</var>["<a data-link-for="ShareTarget">enctype</a>"] is neither
363375
an <a data-cite="!INFRA#ascii-case-insensitive">ASCII
@@ -488,8 +500,7 @@ <h3>
488500
</p>
489501
<p>
490502
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.
493504
</p>
494505
<p>
495506
The <dfn>params</dfn> member contains a <a>ShareTargetParams</a>

0 commit comments

Comments
 (0)