Skip to content

Commit

Permalink
Remove _charset_ handling from application/x-www-form-urlencoded
Browse files Browse the repository at this point in the history
We don't need to handle _charset_ in application/x-www-form-urlencoded's serializer because it should be done in "construct the form data set" steps in the HTML Standard.

Helps fixing whatwg/html#3560.
  • Loading branch information
tkent-google authored and annevk committed Apr 27, 2018
1 parent 21711b0 commit 5c0d2ec
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2495,17 +2495,8 @@ takes a list of name-value or name-value-type tuples <var>tuples</var>, optional

<li><p>Let <var>value</var> be <var>tuple</var>'s value.

<li>
<p>If <var>tuple</var> has a type, then:

<ol>
<li><p>If <var>tuple</var>'s type is "<code>hidden</code>" and <var>name</var> is
"<code>_charset_</code>", then set <var>value</var> to <var>encoding</var>'s
<a for=encoding>name</a>.

<li><p>Otherwise, if <var>tuple</var>'s type is "<code>file</code>", then set <var>value</var>
to <var>value</var>'s filename.
</ol>
<li><p>If <var>tuple</var> has a type and it is "<code>file</code>", then set <var>value</var> to
<var>value</var>'s filename.

<li><p>Set <var>value</var> to the result of <a lt="urlencoded byte serializer">serializing</a>
the result of <a lt=encode>encoding</a> <var>value</var>, using <var>encoding</var>.
Expand Down Expand Up @@ -3128,6 +3119,7 @@ Jeffrey Yasskin,
Joe Duarte,
Joshua Bell,
Jxck,
田村健人 (Kent TAMURA),
Kevin Grandon,
Kornel Lesiński,
Larry Masinter,
Expand Down

0 comments on commit 5c0d2ec

Please sign in to comment.