* 仕様書

[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>

[9] [CITE@en[Add show and close events back]]
([[annevk]]著, [TIME[2018-02-27 22:43:37 +09:00]])
<https://github.com/whatwg/notifications/commit/19616183fb52717d59313dd23bfa9e649081ce74>

[10] [CITE@en[Add close and show events back · Issue #100 · whatwg/notifications]]
([TIME[2018-02-28 22:34:28 +09:00]])
<https://github.com/whatwg/notifications/issues/100>

[11] [CITE@en[Add show and close events back by annevk · Pull Request #122 · whatwg/notifications]]
([TIME[2018-02-28 22:34:49 +09:00]])
<https://github.com/whatwg/notifications/pull/122>

[12] [CITE@en[Notifications: update IDL by annevk · Pull Request #5188 · w3c/web-platform-tests]]
([TIME[2018-02-28 22:35:28 +09:00]])
<https://github.com/w3c/web-platform-tests/pull/5188>

[13] [CITE@en[437286 - Deprecate the Notification.onclose and Notification.onshow events - chromium - Monorail]]
([TIME[2018-02-28 23:20:39 +09:00]])
<https://bugs.chromium.org/p/chromium/issues/detail?id=437286>

[14] [CITE@en[Merge replacing and displaying into showing by annevk · Pull Request #126 · whatwg/notifications]]
([TIME[2018-03-02 18:12:10 +09:00]])
<https://github.com/whatwg/notifications/pull/126>

[15] [CITE@en[Merge replacing and displaying into showing]]
([[annevk]]著, [TIME[2018-03-01 18:44:46 +09:00]])
<https://github.com/whatwg/notifications/commit/e9407ebcc7f6606d5cc5fe2f6e1d6bb92e9158cd>