Skip to content

Commit 16f446f

Browse files
committed
move a step, add some rationale
1 parent df1af79 commit 16f446f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fetch.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6052,7 +6052,7 @@ if the script checks that the URL has the right hostname.
60526052
<h2 id=data-urls><code>data:</code> URLs</h2>
60536053

60546054
<p>For an informative description of <code>data:</code> URLs, see RFC 2397. This section replaces
6055-
that RFC's normative processing requirements. [[RFC2397]]
6055+
that RFC's normative processing requirements to be compatible with deployed content. [[RFC2397]]
60566056

60576057
<p>A <dfn><code>data:</code> URL struct</dfn> is a <a>struct</a> that consists of a
60586058
<dfn for="data: URL struct">MIME type</dfn> (a <a for=/>MIME type</a>) and a
@@ -6074,14 +6074,14 @@ that RFC's normative processing requirements. [[RFC2397]]
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+
60776079
<li><p>If <var>position</var> is past the end of <var>input</var>, then return failure.
60786080

60796081
<li><p>Advance <var>position</var> by 1.
60806082

60816083
<li><p>Let <var>encodedBody</var> be the remainder of <var>input</var>.
60826084

6083-
<li><p><a>Strip leading and trailing ASCII whitespace</a> from <var>mimeType</var>.
6084-
60856085
<li><p>Let <var>body</var> be the <a>string percent decoding</a> of <var>encodedBody</var>.
60866086

60876087
<li>

0 commit comments

Comments
 (0)