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.
282
281
When the {{Blob()}} constructor is invoked,
283
282
user agents must run the following steps:
284
283
285
-
1. If invoked with zero parameters,
286
-
return a new {{Blob}} object consisting of 0 bytes,
287
-
with {{Blob/size}} set to 0,
288
-
and with {{Blob/type}} set to the empty string.
289
-
290
284
1. Let |bytes| be the result of [=processing blob parts=] given {{blobParts}} and {{Blob/Blob(blobParts, options)/options}}.
291
285
292
-
1. If the {{BlobPropertyBag/type}} member of the optional {{Blob/Blob(blobParts, options)/options}} argument is provided
293
-
and is not the empty string,
294
-
run the following sub-steps:
286
+
1. Let |t| be the empty string.
287
+
288
+
1. If {{Blob/Blob(blobParts, options)/options}}["{{BlobPropertyBag/type}}"] does not contain any characters outside the range U+0020 to U+007E, inclusive, then:
289
+
290
+
1. Set |t| to {{Blob/Blob(blobParts, options)/options}}["{{BlobPropertyBag/type}}"].
295
291
296
-
1. Let |t| be the {{BlobPropertyBag/type}} dictionary member.
297
-
If |t| contains any characters outside the range U+0020 to U+007E,
298
-
then set |t| to the empty string and return from these substeps.
299
292
1. Convert every character in |t| to [=ASCII lowercase=].
300
293
301
294
1. Return a {{Blob}} object referring to |bytes| as its associated <a>byte</a> sequence,
302
295
with its {{Blob/size}} set to the length of |bytes|,
303
-
and its {{Blob/type}} set to the value of |t| from the substeps above.
296
+
and its {{Blob/type}} set to |t|.
304
297
305
298
</div>
306
299
@@ -1729,6 +1722,6 @@ This specification was originally developed by the SVG Working Group. Many thank
1729
1722
1730
1723
Thanks to Robin Berjon, Jonas Sicking and Vsevolod Shmyroff for editing the original specification.
1731
1724
1732
-
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.
1725
+
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.
1733
1726
1734
1727
Thanks to the W3C WebApps WG, and to participants on the [email protected] listserv
0 commit comments