diff --git a/notifications.html b/notifications.html index 6ca2ba0..2447889 100644 --- a/notifications.html +++ b/notifications.html @@ -11,7 +11,7 @@

Notifications API

-

Living Standard — Last Updated

+

Living Standard — Last Updated

Participate: @@ -337,6 +337,14 @@

If notification is not in the list of notifications, terminate these steps.

+
  • +

    If notification is a persistent notification and notification was closed by the user, run these substeps:

    +
      +
    1. +

      Let callback be an algorithm that when invoked with a global, fires a service worker notification event named notificationclose given notification on global.

      +
    2. +

      Then run Handle Functional Event with notification’s service worker registration and callback.

      +
  • Remove notification from the list of notifications.

    @@ -667,6 +675,7 @@

    ServiceWorkerGlobalScope { attribute EventHandler onnotificationclick; + attribute EventHandler onnotificationclose; };

    The showNotification(title, options) method, when invoked, must run these steps:

    @@ -737,6 +746,9 @@

    onnotificationclick notificationclick + + onnotificationclose + notificationclose

    Acknowledgments

    Thanks to @@ -760,6 +772,7 @@

    Ac Michael Cooper, Michael Henretty, Michael™ Smith, +Nicolás Satragno, Olli Pettay, Peter Beverloo, Reuben Morais, @@ -878,6 +891,7 @@

    onclick, in §3.4
  • onerror, in §3.4
  • onnotificationclick, in §4 +
  • onnotificationclose, in §4
  • permission