@@ -6074,8 +6074,6 @@ that RFC's normative processing requirements to be compatible with deployed cont
6074
6074
<li><p> Let <var> mimeType</var> be the result of <a>collecting a sequence of code points</a> that
6075
6075
are not equal to U+002C (,), given <var> position</var> .
6076
6076
6077
- <li><p> <a>Strip leading and trailing ASCII whitespace</a> from <var> mimeType</var> .
6078
-
6079
6077
<li><p> If <var> position</var> is past the end of <var> input</var> , then return failure.
6080
6078
6081
6079
<li><p> Advance <var> position</var> by 1.
@@ -6085,8 +6083,9 @@ that RFC's normative processing requirements to be compatible with deployed cont
6085
6083
<li><p> Let <var> body</var> be the <a>string percent decoding</a> of <var> encodedBody</var> .
6086
6084
6087
6085
<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:
6090
6089
6091
6090
<ol>
6092
6091
<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
6095
6094
6096
6095
<li><p> If <var> body</var> is failure, then return failure.
6097
6096
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> .
6099
6104
</ol>
6100
6105
6101
6106
<li><p> If <var> mimeType</var> starts with "<code> ;</code> ", then prepend "<code> text/plain</code> "
0 commit comments