diff --git a/source b/source index e4c174919c6..08d96b29a74 100644 --- a/source +++ b/source @@ -56061,9 +56061,12 @@ fur
Let pairs be the result of converting to a list of name-value pairs with entry list.
+Let query be the result of running the
- application/x-www-form-urlencoded
serializer with entry
- list and encoding.
application/x-www-form-urlencoded
serializer with pairs
+ and encoding.
Set parsed action's query component to query.
@@ -56079,9 +56082,12 @@ furapplication/x-www-form-urlencoded
Let pairs be the result of converting to a list of name-value pairs with entry list.
+Let body be the result of running the
- application/x-www-form-urlencoded
serializer with entry
- list and encoding.
application/x-www-form-urlencoded
serializer with pairs
+ and encoding.
Set body to the result of encoding body.
@@ -56106,8 +56112,11 @@ furtext/plain
Let pairs be the result of converting to a list of name-value pairs with entry list.
+Let body be the result of running the text/plain
- encoding algorithm with entry list.
Set body to the result of encoding body using encoding.
@@ -56133,9 +56142,12 @@ furLet pairs be the result of converting to a list of name-value pairs with entry list.
+Let headers be the result of running the
- application/x-www-form-urlencoded
serializer with entry
- list and encoding.
application/x-www-form-urlencoded
serializer with pairs
+ and encoding.
Replace occurrences of U+002B PLUS SIGN characters (+) in headers with
the string "%20
".
Let pairs be the result of converting to a list of name-value pairs with entry list.
+Switch on enctype:
Let body be the result of running the text/plain
- encoding algorithm with entry list.
Set body to the result of running UTF-8 percent-encode on body using the default encode set.
@@ -56164,8 +56179,8 @@ furLet body be the result of running the
- application/x-www-form-urlencoded
serializer with entry
- list and encoding.
application/x-www-form-urlencoded
serializer with pairs
+ and encoding.If parsed action's query is null, then @@ -56497,6 +56512,47 @@ fur +
The application/x-www-form-urlencoded
and text/plain
encoding algorithms take a list of name-value pairs, where the values
+ must be strings, rather than an entry list where the value can be a File
. The
+ following algorithm performs the conversion.
To convert to a list of name-value pairs an entry list entry list, run + these steps:
+ +Let list be an empty list of name-value pairs.
For each entry of entry list:
+ +Let name be entry's name, with every occurrence of U+000D (CR) not + followed by U+000A (LF), and every occurrence of U+000A (LF) not preceded by U+000D (CR), + replaced by a string consisting of U+000D (CR) and U+000A (LF).
If entry's value is a File
object, then let value be
+ entry's value's name
. Otherwise, let
+ value be entry's value.
Replace every occurrence of U+000D (CR) not followed by U+000A (LF), and every occurrence + of U+000A (LF) not preceded by U+000D (CR), in value, by a string consisting of + U+000D (CR) and U+000A (LF).
Append to list a new name-value pair whose + name is name and whose value is value.
Return list.
For each entry of entry list:
+ +Replace every occurrence of U+000D (CR) not followed by U+000A (LF), and every + occurrence of U+000A (LF) not preceded by U+000D (CR), in entry's name, by a string + consisting of a U+000D (CR) and U+000A (LF).
If entry's value is not a File
object, then replace every
+ occurrence of U+000D (CR) not followed by U+000A (LF), and every occurrence of U+000A (LF) not
+ preceded by U+000D (CR), in entry's value, by a string consisting of a U+000D (CR)
+ and U+000A (LF).
Return the byte sequence resulting from encoding the entry list using the rules
described by RFC 7578, Returning Values from Forms: The The Let result be the empty string. For each entry in entry list: For each pair in pairs: If the entry's value is a Append the entry's name to result. Append pair's name to result. Append a single U+003D EQUALS SIGN character (=) to result. Append the entry's value to result. Append pair's value to result. Append a U+000D CARRIAGE RETURN (CR) U+000A LINE FEED (LF) character pair to result.
-
text/plain
encoding algorithm, given an entry
- list, is as follows:text/plain
encoding algorithm, given a list of name-value
+ pairs pairs, is as follows:
-
File
object, then set its value to the
- File
object's name
.