/
739.txt
45 lines (34 loc) · 2.12 KB
/
739.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
* 仕様書
[REFS[
- [2] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-05-06 10:42:35 +09:00]] 版) <https://html.spec.whatwg.org/#handler-websocket-onclose>
- [3] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-05-06 10:42:35 +09:00]] 版) <https://html.spec.whatwg.org/#closeevent>
]REFS]
* [CODE(DOMi)@en[CloseEvent]] インターフェイス
[4] [DFN[[CODE(DOMi)@en[[[CloseEvent]]]]]] [[インターフェイス]]は、
[[WebSocket接続を閉じる]]際の [CODE(DOMe)@en[[[close]]]] [[イベント]]で用いられます。
[6] [CODE(DOMi)@en[[[CloseEvent]]]] [[インターフェイス]]は、
[[文書環境]]と[[ワーカー環境]]に[[晒され]]ています [SRC[>>3]]。
[44] [CODE(DOMi)@en[[[CloseEvent]]]] [[インターフェイス]]は、
他の [CODE(DOMi)@en[[[Event]]]] [[インターフェイス]]同様の[[コンストラクター]]を持ちます
[SRC[>>3]]。
初期化のための[[辞書]]は [DFN[[CODE(DOMi)@en[[[CloseEventInit]]]]]] です [SRC[>>3]]。
[43] [CODE(DOMi)@en[[[CloseEvent]]]] [[インターフェイス]]は、
[CODE(DOMi)@en[[[Event]]]] [[インターフェイス]]を[[継承]]しています [SRC[>>3]]。
[CODE(DOMi)@en[[[CloseEventInit]]]] [[辞書]]は、
[CODE(DOMi)@en[[[EventInit]]]] [[辞書]]を[[継承]]しています [SRC[>>3]]。
[5] 次の[[メンバー]]があります。
[FIG(short list)[
- [CODE(DOMa)@en[[[code]]]]
- [CODE(DOMa)@en[[[reason]]]]
- [CODE(DOMa)@en[[[wasClean]]]]
]FIG]
* 歴史
[1] [CITE@en[Remove close event. Add description of notificationclick and notificatio... · 53ebcf2 · whatwg/notifications]]
( ([TIME[2014-10-10 02:57:34 +09:00]] 版))
<https://github.com/whatwg/notifications/commit/53ebcf25458f7581570a228cfa11ad7cb27ff4ea>
[7] [CITE@en[Editorial: define Event attribute defaults through IDL · whatwg/html@0be0229]]
([TIME[2016-03-23 21:16:37 +09:00]] 版)
<https://github.com/whatwg/html/commit/0be02299f128cbb7c65a7ce259fdd838fd44a4b5>
[8] [CITE@en[Remove more types from document.createEvent()]]
([[ayg]]著, [TIME[2017-08-06 21:41:25 +09:00]])
<https://github.com/whatwg/dom/commit/5a532da58455e55b1e611161b72224d083fee7d4>