Skip to content

Commit 865ddbc

Browse files
committed
attempt to define foolip's proposal
1 parent 16f446f commit 865ddbc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

fetch.bs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6074,8 +6074,6 @@ that RFC's normative processing requirements to be compatible with deployed cont
60746074
<li><p>Let <var>mimeType</var> be the result of <a>collecting a sequence of code points</a> that
60756075
are not equal to U+002C (,), given <var>position</var>.
60766076

6077-
<li><p><a>Strip leading and trailing ASCII whitespace</a> from <var>mimeType</var>.
6078-
60796077
<li><p>If <var>position</var> is past the end of <var>input</var>, then return failure.
60806078

60816079
<li><p>Advance <var>position</var> by 1.
@@ -6085,8 +6083,9 @@ that RFC's normative processing requirements to be compatible with deployed cont
60856083
<li><p>Let <var>body</var> be the <a>string percent decoding</a> of <var>encodedBody</var>.
60866084

60876085
<li>
6088-
<p>If <var>mimeType</var> ends with an <a>ASCII case-insensitive</a> match for
6089-
"<code>;base64</code>", then:
6086+
<p>If <var>mimeType</var> ends with U+003B (;), followed by zero or more U+0020 SPACE, followed by
6087+
an <a>ASCII case-insensitive</a> match for "<code>base64</code>", followed by zero or more U+0020
6088+
SPACE, then:
60906089

60916090
<ol>
60926091
<li><p>Let <var>stringBody</var> be the <a>isomorphic decode</a> of <var>body</var>.
@@ -6095,7 +6094,13 @@ that RFC's normative processing requirements to be compatible with deployed cont
60956094

60966095
<li><p>If <var>body</var> is failure, then return failure.
60976096

6098-
<li><p>Remove the last 7 code points from <var>mimeType</var>.
6097+
<li><p>Remove trailing U+0020 SPACE <a>code points</a> from <var>mimeType</var>, if any.
6098+
6099+
<li><p>Remove the last 6 <a>code points</a> from <var>mimeType</var>.
6100+
6101+
<li><p>Remove trailing U+0020 SPACE <a>code points</a> from <var>mimeType</var>, if any.
6102+
6103+
<li><p>Remove the last <a>code point</a> from <var>mimeType</var>.
60996104
</ol>
61006105

61016106
<li><p>If <var>mimeType</var> starts with "<code>;</code>", then prepend "<code>text/plain</code>"

0 commit comments

Comments
 (0)