Skip to content

Commit 9a0ae3a

Browse files
author
Marcos Cáceres
authored
Editorial: use new constructor IDL syntax (#319)
1 parent 9355576 commit 9a0ae3a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
};
5454
</script>
5555
</head>
56-
<body data-cite="service-workers FILEAPI promises-guide">
56+
<body data-cite="service-workers FILEAPI">
5757
<section id="abstract">
5858
<p>
5959
The <cite>Push API</cite> enables sending of a <a>push message</a> to a web application via
@@ -1039,14 +1039,15 @@ <h2>
10391039
<dfn>PushEvent</dfn> Interface
10401040
</h2>
10411041
<pre class="idl" data-cite="service-workers">
1042-
[Constructor(DOMString type, optional PushEventInit eventInitDict = {}), Exposed=ServiceWorker, SecureContext]
1042+
[Exposed=ServiceWorker, SecureContext]
10431043
interface PushEvent : ExtendableEvent {
1044+
constructor(DOMString type, optional PushEventInit eventInitDict = {});
10441045
readonly attribute PushMessageData? data;
10451046
};
10461047
</pre>
10471048
<p>
1048-
When a constructor of the <a>PushEvent</a> interface, or of an interface that inherits
1049-
from the <a>PushEvent</a> interface, is invoked, the usual <a>event constructing
1049+
When a <dfn>constructor</dfn> of the <a>PushEvent</a> interface, or of an interface that
1050+
inherits from the <a>PushEvent</a> interface, is invoked, the usual <a>event constructing
10501051
steps</a> are extended to include the following steps:
10511052
</p>
10521053
<ol>
@@ -1214,8 +1215,9 @@ <h2>
12141215
<dfn>PushSubscriptionChangeEvent</dfn> Interface
12151216
</h2>
12161217
<pre class="idl" data-cite="service-workers">
1217-
[Constructor(DOMString type, optional PushSubscriptionChangeEventInit eventInitDict = {}), Exposed=ServiceWorker, SecureContext]
1218+
[Exposed=ServiceWorker, SecureContext]
12181219
interface PushSubscriptionChangeEvent : ExtendableEvent {
1220+
constructor(DOMString type, optional PushSubscriptionChangeEventInit eventInitDict = {});
12191221
readonly attribute PushSubscription? newSubscription;
12201222
readonly attribute PushSubscription? oldSubscription;
12211223
};

0 commit comments

Comments
 (0)