Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editorial: Use more precise terms to define WakeLockSentinel.onrelease #365

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,10 @@ <h3 data-tests="wakelock-onrelease.https.html">
The <dfn>onrelease</dfn> attribute
</h3>
<p>
The {{WakeLockSentinel/onrelease}} attribute is an <a>event
handler</a> whose corresponding <a>event handler event type</a> is
<code>release</code>.
The {{WakeLockSentinel/onrelease}} attribute is an <a>event handler
IDL attribute</a> for the "<code>onrelease</code>" <a>event
handler</a>, whose <a>event handler event type</a> is
"<dfn><code>release</code></dfn>".
</p>
<p>
It is used to notify scripts that a given {{WakeLockSentinel}}
Expand All @@ -545,10 +546,11 @@ <h3>
</h3>
<p>
While a {{WakeLockSentinel}} object has one or more event listeners
registered for "release", and the {{WakeLockSentinel}} object hasn't
already been released, there MUST be a strong reference from the
{{Window}} object that the {{WakeLockSentinel}} object's constructor
was invoked from to the {{WakeLockSentinel}} object itself.
registered for "<a><code>release</code></a>", and the
{{WakeLockSentinel}} object hasn't already been released, there MUST
be a strong reference from the {{Window}} object that the
{{WakeLockSentinel}} object's constructor was invoked from to the
{{WakeLockSentinel}} object itself.
</p>
<p>
While there is a task queued by an {{WakeLockSentinel}} object on the
Expand Down Expand Up @@ -738,7 +740,7 @@ <h3>
<li>Set |lock|'s {{WakeLockSentinel/[[Released]]}} to `true`.
</li>
<li>
<a>Fire an event</a> named "`release`" at |lock|.
<a>Fire an event</a> named "<a><code>release</code></a>" at |lock|.
</li>
</ol>
</section>
Expand Down
Loading