/
764.txt
70 lines (53 loc) · 3.18 KB
/
764.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
* 仕様書
[REFS[
- [2] '''[CITE[File API]] ([TIME[2015-04-17 16:25:21 +09:00]] 版) <https://w3c.github.io/FileAPI/#blob>'''
- [10] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-05-06 10:42:35 +09:00]] 版) <https://html.spec.whatwg.org/#dom-binarytype-blob>
]REFS]
* 生成
[3] [CODE(DOMi)@en[[[Blob]]]] [[オブジェクト]]は次の方法で得られます。
[FIG(list)[
- [CODE(DOMi)@en[[[Blob]]]] [[コンストラクター]]
- [CODE(HTML)@en[[[<input type=file>]]]].[CODE(DOMa)@en[[[files]]]] ([CODE(DOMi)@en[[[File]]]])
- [CODE(DOMi)@en[[[DataTransfer]]]] [CODE(DOMa)@en[[[files]]]] ([CODE(DOMi)@en[[[File]]]])
- [CODE(DOMi)@en[[[DataTransferItem]]]] [CODE(DOMa)@en[[[getAsFile]]]] ([CODE(DOMi)@en[[[File]]]])
- [CODE(DOMm)@en[[[toBlob]]]] ([CODE(DOMi)@en[[[File]]]])
- [CODE(DOMi)@en[[[Blob]]]] [CODE(DOMm)@en[[[blob]]]]
- [[XHR]] [CODE(DOMa)@en[[[response]]]]
- [[WebSocket]] [CODE(DOMi)@en[[[MessageEvent]]]] の [CODE(DOMa)@en[[[data]]]]
- [[構造化クローン]]
]FIG]
* [CODE(DOMi)@en[BinaryType]] の値 [CODE(DOM)@en[blob]]
[13] [[列挙型]] [CODE(DOMi)@en[[[BinaryType]]]] の値
[DFN[[CODE(DOM)@en[[[blob]]]]]] は、 [CODE(DOMi)@en[[[Blob]]]]
として返すべきことを表します [SRC[>>10]]。
* [CODE(URI)@en[blob:]] URL
[1] [CODE(DOMi)@en[[[Blob]]]] には [[Blob URL]] ([CODE(URI)@en[[[blob:]]]])
を発行させることができます。
* 実装
[11] [CITE@en-US[Blob - Web API interfaces | MDN]]
( ([TIME[2013-09-30 14:47:18 +09:00]] 版))
<https://developer.mozilla.org/en-US/docs/Web/API/Blob?redirectlocale=en-US&redirectslug=DOM%2FBlob>
[4] [CITE@en-US[Blob() - Web API Interfaces | MDN]]
([TIME[2015-02-21 04:06:48 +09:00]] 版)
<https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob>
[5] [CITE@en[Fix #48: align with HTML's form submission algorithm · whatwg/xhr@7b1941f]]
([TIME[2016-01-22 23:25:50 +09:00]] 版)
<https://github.com/whatwg/xhr/commit/7b1941fbd5347433734a491c36ef8ea6485e7dfb>
[6] [CITE@en[Use the concept of a 'closed' Blob from FileAPI · whatwg/html@efd6202]]
([TIME[2016-02-03 12:25:21 +09:00]] 版)
<https://github.com/whatwg/html/commit/efd62026f44f6c89bfd8415795db1fef4edccafc>
[7] [CITE@en[Write structured clone algorithm in terms of ECMAScript · whatwg/html@bfb960c]]
([TIME[2016-03-02 16:42:28 +09:00]] 版)
<https://github.com/whatwg/html/commit/bfb960c938580c95e77365e614218b952f96375b>
[8] [CITE@en[Breaking: refactor structured clone into serialize/deserialize]]
([[domenic]]著, [TIME[2017-03-21 06:09:33 +09:00]])
<https://github.com/whatwg/html/commit/97d644c97335956610a31e8ad98d1a388c063e84>
[9] [CITE@en[Editorial: URL parsing relies on Blob URL Store lookup]]
([[annevk]]著, [TIME[2017-03-22 22:44:15 +09:00]])
<https://github.com/whatwg/html/commit/a0a23b96872a81e224c80881e71d58d8326e472e>
[12] [CITE@en[1312410 - Fetch should reuse XHR's 'store large blobs in temp files' -setup]]
([TIME[2017-07-28 16:50:12 +09:00]])
<https://bugzilla.mozilla.org/show_bug.cgi?id=1312410>
[14] [CITE@en[Add serialization and deserialization steps to Blob/File/FileList int…]]
([[mkruisselbrink]]著, [TIME[2017-09-26 07:20:26 +09:00]])
<https://github.com/w3c/FileAPI/commit/828c3b6a44195298790b32507c40163703d5ba3e>