From 1139bdc6f4ba3b916604c30b77c1d51a8eadd1f2 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Let action be the resulting URL string.
Let parsed action be the resulting URL record.
Let scheme be the scheme of @@ -54575,9 +54572,9 @@ fur
Let query be the result of running the application/x-www-form-urlencoded encoding algorithm with form
- data set and encoding, interpreted as a US-ASCII string.
Let query be the result of running the
+ application/x-www-form-urlencoded serializer with form data
+ set and encoding.
Set parsed action's query component to query.
@@ -54588,33 +54585,47 @@ furSwitch on enctype: -
Let entity body be the result of running the appropriate form encoding - algorithm with form data set and encoding.
+application/x-www-form-urlencodedLet MIME type be determined as follows:
+Let body be the result of running the
+ application/x-www-form-urlencoded serializer with form
+ data set and encoding.
Set body to the result of encoding + body.
-application/x-www-form-urlencodedLet MIME type be "application/x-www-form-urlencoded".
application/x-www-form-urlencoded".multipart/form-datamultipart/form-dataLet body be the result of running the multipart/form-data encoding algorithm with form data set
+ and encoding.
Let MIME type be the concatenation of the string "multipart/form-data;", a U+0020 SPACE character, the string "boundary=", and the multipart/form-data
+ boundary string generated by the multipart/form-data
+ encoding algorithm.
multipart/form-data;", a U+0020 SPACE character, the string "boundary=", and the multipart/form-data boundary
- string generated by the multipart/form-data encoding
- algorithm.text/plaintext/plainLet body be the result of running the text/plain
+ encoding algorithm with form data set, encoding.
text/plain".Set body to the result of encoding + body using encoding.
+Let MIME type be "text/plain".
Plan to navigate to a new request whose
@@ -54622,7 +54633,7 @@ fur
data-x="concept-request-method">method is method, header list consists of `Content-Type`/MIME type, and body is entity body.
Let headers be the result of running the application/x-www-form-urlencoded encoding algorithm with form
- data set and encoding, interpreted as a US-ASCII string.
Let headers be the result of running the
+ application/x-www-form-urlencoded serializer with form data
+ set and encoding.
Replace occurrences of U+002B PLUS SIGN characters (+) in headers with
the string "%20".
Let body be the resulting of running the appropriate form encoding - algorithm with form data set and encoding, and then percent encoding all the bytes in the resulting byte string - that, when interpreted as US-ASCII, are not characters in the URL default encode - set.
+Switch on enctype: + +
text/plainLet body be the result of running the text/plain encoding algorithm with form data set and
+ encoding.
Set body to the result of concatonating the result of UTF-8 percent encoding each code point in body, using the + default encode set.
+Let body be the result of running the
+ application/x-www-form-urlencoded serializer with form data
+ set and encoding.
If parsed action's query is null, then set it to the empty string. @@ -54667,8 +54694,8 @@ fur
Append "body=" to parsed action's query.
Append body, interpreted as a US-ASCII string, to parsed action's - query.
+Append body to parsed action's query.
Plan to navigate to parsed action.
The appropriate form encoding algorithm is - determined as follows:
- -application/x-www-form-urlencodedapplication/x-www-form-urlencoded encoding
- algorithm.multipart/form-datamultipart/form-data encoding algorithm.text/plaintext/plain encoding algorithm.See the WHATWG URL standard for details on application/x-www-form-urlencoded.
The application/x-www-form-urlencoded encoding algorithm, given a form
- data set and encoding, is as follows:
Let serialized be the result of running the
- application/x-www-form-urlencoded serializer given form data
- set and encoding.
Return the result of encoding - serialized.
See the WHATWG URL standard for
+ details on application/x-www-form-urlencoded.
Return the result of encoding result using - encoding.
Return result.
Let body be the result of running the text/plain
- encoding algorithm with form data set, encoding.
Set body to the result of encoding body using encoding.