Skip to content
Browse files

Remove _charset_ handling from application/x-www-form-urlencoded

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 5c0d2ec09ec16099e5c453d088fea9b8ba0154a5
Showing with 3 additions and 11 deletions.
  1. +3 −11
@@ -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.

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

<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.
<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>.
@@ -3128,6 +3119,7 @@ Jeffrey Yasskin,
Joe Duarte,
Joshua Bell,
田村健人 (Kent TAMURA),
Kevin Grandon,
Kornel Lesiński,
Larry Masinter,

0 comments on commit 5c0d2ec

Please sign in to comment.
You can’t perform that action at this time.