diff --git a/url.bs b/url.bs index a3a3a2a4..9d1699a8 100644 --- a/url.bs +++ b/url.bs @@ -2186,8 +2186,8 @@ requires.
The
application/x-www-form-urlencoded
parser
takes a byte sequence input, optionally with an encoding
-encoding override, optionally with a use _charset_ flag, and optionally with an
-isindex flag, and then runs these steps:
+encoding override, and optionally with a use _charset_ flag, and then runs these
+steps:
Let encoding be UTF-8.
@@ -2206,10 +2206,6 @@ takes a byte sequence input, optionally with an encoding
`&
`.
-
If the isindex flag is set and the first byte sequence in
- sequences does not contain a `=
`, prepend
- `=
` to the first byte sequence in sequences.
-
Let tuples be an empty list of name-value tuples where both name and value hold a byte sequence. @@ -2341,20 +2337,11 @@ takes a list of name-value or name-value-type tuples tuples, optional serializing the result of encoding tuple's value, using encoding. -
If tuple has a type, tuple's type is "text
",
- outputPair's name is "isindex
", and tuple is the first tuple
- in tuples, append outputPair's value to output.
-
-
Otherwise, run these substeps: - -
If tuple is not the first pair in tuples, append
- "&
" to output.
+
If tuple is not the first pair in tuples, then append
+ "&
" to output.
-
=
", followed by
- outputPair's value, to output.
- =
", followed by
+ outputPair's value, to output.
application/x-www-form-urlencoded
parsing
The features provided by the application/x-www-form-urlencoded
parser are mainly
relevant for server-oriented implementations. A browser-based implementation only needs what the application/x-www-form-urlencoded
string parser requires.
The application/x-www-form-urlencoded
parser takes a byte sequence input, optionally with an encoding encoding override, optionally with a use _charset_ flag, and optionally with an isindex flag, and then runs these steps:
The application/x-www-form-urlencoded
parser takes a byte sequence input, optionally with an encoding encoding override, and optionally with a use _charset_ flag, and then runs these
+steps:
Let encoding be UTF-8.
@@ -1603,9 +1604,6 @@Let sequences be the result of splitting input on
`&
`.
If the isindex flag is set and the first byte sequence in sequences does not contain a `=
`, prepend
- `=
` to the first byte sequence in sequences.
Let tuples be an empty list of name-value tuples where both name and value hold a byte sequence.
@@ -1695,16 +1693,9 @@Otherwise, set outputPair’s value to the result of serializing the result of encoding tuple’s value, using encoding.
If tuple has a type, tuple’s type is "text
", outputPair’s name is "isindex
", and tuple is the first tuple
- in tuples, append outputPair’s value to output.
Otherwise, run these substeps:
-If tuple is not the first pair in tuples, append
- "&
" to output.
=
", followed by outputPair’s value, to output.
- If tuple is not the first pair in tuples, then append
+ "&
" to output.
=
", followed by outputPair’s value, to output.