You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p>Let <var>charset</var> be the <span data-x="encoding name">name</span> of
56321
+
<var>encoding</var> if <var>encoding</var> is given, and "<code data-x="">UTF-8</code>"
56322
+
otherwise.</p></li>
56323
+
56324
+
<li><p>Append an entry to the <var>form data set</var> with <var>name</var> as the name,
56325
+
<var>charset</var> as the value, and <var>type</var> as the type.</p></li>
56326
+
</ol>
56327
+
</li>
56328
+
56314
56329
<li><p>Otherwise, append an entry to the <var>form data set</var> with <var>name</var> as the name, the <span data-x="concept-fe-value">value</span> of the <var>field</var> element as the value, and <var>type</var> as the type.</p></li>
56315
56330
56316
56331
<li>
@@ -56436,18 +56451,12 @@ fur
56436
56451
56437
56452
<li><p>Let <var>result</var> be the empty string.</p></li>
56438
56453
56439
-
<li><p>Let <var>charset</var> be the <span data-x="encoding name">name</span> of
56440
-
<var>encoding</var>.</p></li>
56441
-
56442
56454
<li>
56443
56455
56444
56456
<p>For each entry in the <var>form data set</var>:</p>
56445
56457
56446
56458
<ol>
56447
56459
56448
-
<li><p>If the entry's name is "<code data-x="attr-fe-name-charset">_charset_</code>" and its
56449
-
type is "<code data-x="">hidden</code>", replace its value with <var>charset</var>.</p></li>
56450
-
56451
56460
<!-- the step that replaces a file with its name is missing in
56452
56461
this version of the algorithm -->
56453
56462
@@ -56505,24 +56514,15 @@ fur
56505
56514
<div w-nodev>
56506
56515
56507
56516
<p>The <dfn><code data-x="">text/plain</code> encoding algorithm</dfn>, given a <var>form data
56508
-
set</var> and <var>encoding</var>, is as follows:</p>
56517
+
set</var>, is as follows:</p>
56509
56518
56510
56519
<ol>
56511
-
56512
56520
<li><p>Let <var>result</var> be the empty string.</p></li>
56513
56521
56514
-
<li><p>Let <var>charset</var> be the <span data-x="encoding name">name</span> of
56515
-
<var>encoding</var>.</p></li>
56516
-
56517
56522
<li>
56518
-
56519
56523
<p>For each entry in the <var>form data set</var>:</p>
56520
56524
56521
56525
<ol>
56522
-
56523
-
<li><p>If the entry's name is "<code data-x="attr-fe-name-charset">_charset_</code>" and its
56524
-
type is "<code data-x="">hidden</code>", replace its value with <var>charset</var>.</p></li>
56525
-
56526
56526
<li><p>If the entry's type is "<code data-x="">file</code>", replace its value with the file's
56527
56527
name only.</p></li>
56528
56528
@@ -56533,13 +56533,10 @@ fur
56533
56533
<li><p>Append the entry's value to <var>result</var>.</p></li>
56534
56534
56535
56535
<li><p>Append a U+000D CARRIAGE RETURN (CR) U+000A LINE FEED (LF) character pair to <var>result</var>.</p></li>
0 commit comments