Re: [whatwg/fetch] Define data: URLs (#579)

annevk commented on this pull request.



> +  "<code>;base64</code>", then:
+
+  <ol>
+   <li><p>Let <var>stringBody</var> be the <a>isomorphic decode</a> of <var>body</var>.
+
+   <li><p>Set <var>body</var> to the <a>forgiving-base64 decode</a> of <var>stringBody</var>.
+
+   <li><p>If <var>body</var> is failure, then return failure.
+
+   <li><p>Remove the last 7 code points from <var>mimeType</var>.
+  </ol>
+
+ <li><p>If <var>mimeType</var> starts with "<code>;</code>", then prepend "<code>text/plain</code>"
+ to <var>mimeType</var>.
+
+ <li><p>Let <var>mimeTypeRecord</var> be the result of <a lt="parse a MIME type">parsing</a>

It'll go to https://mimesniff.spec.whatwg.org/#parse-a-mime-type tomorrow.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/579#discussion_r155529002

Received on Thursday, 7 December 2017 14:07:57 UTC