diff --git a/url.bs b/url.bs index 764e7c55..88845f18 100644 --- a/url.bs +++ b/url.bs @@ -2374,28 +2374,31 @@ takes a list of name-value or name-value-type tuples tuples, optional
For each tuple in tuples, run these substeps:
Let outputPair be a new name-value pair. +
Let name be the result of serializing + the result of encoding tuple's name, using encoding. -
Set outputPair's name to the result of - serializing the result of encoding - tuple's name, using encoding. +
Let value be tuple's value. -
If tuple has a type, tuple's type is "hidden
", and
- outputPair's name is "_charset_
", set outputPair's value to
- encoding's name.
+
If tuple has a type, then: -
Otherwise, if tuple has a type, and tuple's type is
- "file
", set outputPair's value to tuple's value's filename.
+
If tuple's type is "hidden
" and name is
+ "_charset_
", then set value to encoding's
+ name.
-
Otherwise, set outputPair's value to the result of - serializing the result of encoding - tuple's value, using encoding. +
Otherwise, if tuple's type is "file
", then set value
+ to value's filename.
+
Set value to the result of serializing + the result of encoding value, using encoding.
If tuple is not the first pair in tuples, then append
"&
" to output.
-
=
", followed by
- outputPair's value, to output.
+ =
", followed by value, to
+ output.