diff --git a/fetch.bs b/fetch.bs index de4606f2..ccaef810 100644 --- a/fetch.bs +++ b/fetch.bs @@ -698,6 +698,19 @@ A: nosniff B: sniff A: + + +

+A:
+B: sniff
+
+ « "" » + + +

+B: sniff
+
+ null
A: text/html;", x/x
@@ -763,12 +776,12 @@ a header value value, run these steps. They return a

Let position be a position variable for input, initially pointing at the start of input. -

  • Let values be a list of strings, initially empty. +

  • Let values be a list of strings, initially « ».

  • Let temporaryValue be the empty string.

  • -

    While position is not past the end of input: +

    While true:

    1. @@ -778,30 +791,15 @@ a header value value, run these steps. They return a The result might be the empty string.
    2. -

      If position is not past the end of input, then: +

      If position is not past the end of input and the + code point at position within input is U+0022 ("):

        -
      1. -

        If the code point at position within input is - U+0022 ("), then: - -

          -
        1. Append the result of collecting an HTTP quoted string from input, - given position, to temporaryValue. +

        2. Append the result of collecting an HTTP quoted string from input, + given position, to temporaryValue. -

        3. If position is not past the end of input, then - continue. -
        - -
      2. -

        Otherwise: - -

          -
        1. Assert: the code point at position within input is - U+002C (,). - -

        2. Advance position by 1. -

        +
      3. If position is not past the end of input, then + continue.
    3. Remove all HTTP tab or space from the start and end of temporaryValue. @@ -809,9 +807,14 @@ a header value value, run these steps. They return a

      Append temporaryValue to values.

    4. Set temporaryValue to the empty string. -

    -
  • Return values. +

  • If position is past the end of input, then return values. + +

  • Assert: the code point at position within + input is U+002C (,). + +

  • Advance position by 1. +

    Except for blessed call sites, the algorithm directly above is not to be invoked @@ -9040,6 +9043,7 @@ Brad Porter, Bryan Smith, Caitlin Potter, Cameron McCormack, +Carlo Cannas, 白丞祐 (Cheng-You Bai), Chirag S Kumar, Chris Needham,