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:

  1. Let encoding be UTF-8. @@ -2206,10 +2206,6 @@ takes a byte sequence input, optionally with an encoding `&`. -

  2. 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. -

  3. 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. -

  4. 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. - -

  5. -

    Otherwise, run these substeps: - -

      -
    1. If tuple is not the first pair in tuples, append - "&" to output. +

    2. If tuple is not the first pair in tuples, then append + "&" to output. -

    3. Append outputPair's name, followed by "=", followed by - outputPair's value, to output. -
    +
  6. Append outputPair's name, followed by "=", followed by + outputPair's value, to output.
  • Return output. diff --git a/url.html b/url.html index e49866be..d28c9d8d 100644 --- a/url.html +++ b/url.html @@ -13,7 +13,7 @@

    URL

    -

    Living Standard — Last Updated

    +

    Living Standard — Last Updated

    @@ -1591,7 +1591,8 @@

    5.1. 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:

    1. Let encoding be UTF-8.

      @@ -1603,9 +1604,6 @@

      Let sequences be the result of splitting input on `&`.

      -
    2. -

      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.

    3. 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.

    4. -

      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.

      -
    5. -

      Otherwise, run these substeps:

      -
        -
      1. -

        If tuple is not the first pair in tuples, append - "&" to output.

        -
      2. Append outputPair’s name, followed by "=", followed by outputPair’s value, to output. -
      +

      If tuple is not the first pair in tuples, then append + "&" to output.

      +
    6. Append outputPair’s name, followed by "=", followed by outputPair’s value, to output.
  • Return output.