You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The {{Blob()}} constructor can be invoked with zero or more parameters.
291
290
When the {{Blob()}} constructor is invoked,
292
291
user agents must run the following steps:
293
292
294
-
1. If invoked with zero parameters,
295
-
return a new {{Blob}} object consisting of 0 bytes,
296
-
with {{Blob/size}} set to 0,
297
-
and with {{Blob/type}} set to the empty string.
298
-
299
293
1. Let |bytes| be the result of [=processing blob parts=] given {{blobParts}} and {{Blob/Blob(blobParts, options)/options}}.
300
294
301
-
1. If the {{BlobPropertyBag/type}} member of the {{Blob/Blob(blobParts, options)/options}} argument is not the empty string,
302
-
run the following sub-steps:
295
+
1. Let |t| be the empty string.
296
+
297
+
1. If {{Blob/Blob(blobParts, options)/options}}["{{BlobPropertyBag/type}}"] does not contain any characters outside the range U+0020 to U+007E, inclusive, then:
298
+
299
+
1. Set |t| to {{Blob/Blob(blobParts, options)/options}}["{{BlobPropertyBag/type}}"].
303
300
304
-
1. Let |t| be the {{BlobPropertyBag/type}} dictionary member.
305
-
If |t| contains any characters outside the range U+0020 to U+007E,
306
-
then set |t| to the empty string and return from these substeps.
307
301
1. Convert every character in |t| to [=ASCII lowercase=].
308
302
309
303
1. Return a {{Blob}} object referring to |bytes| as its associated <a>byte</a> sequence,
310
304
with its {{Blob/size}} set to the length of |bytes|,
311
-
and its {{Blob/type}} set to the value of |t| from the substeps above.
305
+
and its {{Blob/type}} set to |t|.
312
306
313
307
</div>
314
308
@@ -1769,6 +1763,6 @@ This specification was originally developed by the SVG Working Group. Many thank
1769
1763
1770
1764
Thanks to Robin Berjon, Jonas Sicking and Vsevolod Shmyroff for editing the original specification.
1771
1765
1772
-
Special thanks to Olli Pettay, Nikunj Mehta, Garrett Smith, Aaron Boodman, Michael Nordman, Jian Li, Dmitry Titov, Ian Hickson, Darin Fisher, Sam Weinig, Adrian Bateman and Julian Reschke.
1766
+
Special thanks to Boris Zbarsky, Olli Pettay, Nikunj Mehta, Garrett Smith, Aaron Boodman, Michael Nordman, Jian Li, Dmitry Titov, Ian Hickson, Darin Fisher, Sam Weinig, Adrian Bateman, and Julian Reschke.
1773
1767
1774
1768
Thanks to the W3C WebApps WG, and to participants on the [email protected] listserv
0 commit comments