Skip to content

Commit 639ccb1

Browse files
author
Marcos Cáceres
authored
Fix(installation): clarify installation event (closes #473) (#474)
* Fix(installation): clarify installation event (closes #473) * chore(oninstall): fix nit
1 parent 45eac21 commit 639ccb1

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

index.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,17 @@ <h2>
405405
</h2>
406406
<section>
407407
<h3>
408-
<code>AppInstallEventHandlers</code> mixin
408+
Extensions to the <code>Window</code> object
409409
</h3>
410410
<p>
411-
The <a><code>AppInstallEventHandlers</code></a> mixin defines the
412-
event handler attributes on which events relating to the
411+
The following extensions to the <code>Window</code> object specify
412+
the event handler attributes on which events relating to the
413413
<a>installation</a> of a web application are fired.
414414
</p>
415415
<pre class="idl">
416-
[NoInterfaceObject, exposed=(Window)]
417-
interface AppInstallEventHandlers {
416+
partial interface Window {
418417
attribute EventHandler oninstall;
419418
};
420-
Window implements AppInstallEventHandlers;
421419
</pre>
422420
<div class="example">
423421
<p>
@@ -441,8 +439,12 @@ <h4>
441439
<code>oninstall</code> attribute
442440
</h4>
443441
<p>
444-
<code>oninstall</code> is an <a>event handler IDL attribute</a> for
445-
the "<a>install</a>" event type.
442+
<dfn for="Window">oninstall</dfn> is an <a>event handler IDL
443+
attribute</a> for the "<a>install</a>" event type. The interface
444+
used for these events is the <a><code>Event</code> interface</a>
445+
[[!WHATWG-DOM]]. This event is dispatched as a result of a
446+
<a>manual installation</a> or an <a>automated install prompt</a>,
447+
which cause the <a>steps to install the web application</a> to run.
446448
</p>
447449
</section>
448450
</section>
@@ -2722,6 +2724,10 @@ <h2>
27222724
The following are defined in [[!WHATWG-DOM]]:
27232725
</p>
27242726
<ul>
2727+
<li>
2728+
<a href="https://dom.spec.whatwg.org/#event"><dfn><code>Event</code>
2729+
interface</dfn></a>
2730+
</li>
27252731
<li>
27262732
<a href="https://dom.spec.whatwg.org/#concept-event-fire"><dfn>Fire
27272733
an event</dfn></a>

0 commit comments

Comments
 (0)