Skip to content

Commit

Permalink
editorial: Use Web IDL's definition conventions for methods and getters.
Browse files Browse the repository at this point in the history
Aligns with whatwg/webidl#882:
- Describe getters as "The attr getter steps are [...]".
- Describe methods as "The myMethod(arg) method steps are [...]".
  • Loading branch information
rakuco committed Nov 5, 2021
1 parent 4eddbe4 commit 10f1054
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ <h3>
The <dfn>request()</dfn> method
</h3>
<p data-tests="wakelock-type.https.any.html">
The {{WakeLock/request()}} method, when invoked, MUST run the
following steps. The method takes one argument, the {{WakeLockType}}
|type:WakeLockType|:
The <code>request(|type:WakeLockType|)</code> method steps are:
</p>
<ol class="algorithm">
<li>Let |document:Document| be [=this=]'s [=relevant settings
Expand Down Expand Up @@ -483,8 +481,8 @@ <h3>
The <dfn>released</dfn> attribute
</h3>
<p data-tests="wakelock-released.https.html">
The {{WakeLockSentinel/released}} attribute's getter returns the
value of the {{WakeLockSentinel/[[Released]]}} internal slot.
The {{WakeLockSentinel/released}} getter steps are to return
[=this=].{{WakeLockSentinel/[[Released]]}}.
</p>
<aside class="note">
Once a {{WakeLockSentinel}} is released,
Expand All @@ -497,17 +495,16 @@ <h3>
The <dfn>type</dfn> attribute
</h3>
<p>
The {{WakeLockSentinel/type}} attribute corresponds to the
{{WakeLockSentinel}}'s <a>wake lock type</a>.
The {{WakeLockSentinel/type}} getter steps are to return [=this=]'s
<a>wake lock type</a>.
</p>
</section>
<section>
<h3>
The <dfn>release()</dfn> method
</h3>
<p data-tests="wakelock-onrelease.https.html">
The {{WakeLockSentinel/release()}} method, when invoked, MUST run the
following steps:
The {{WakeLockSentinel/release()}} method steps are:
</p>
<ol class="algorithm">
<li>If <a>this</a>'s {{WakeLockSentinel/[[Released]]}} is `false`,
Expand Down

0 comments on commit 10f1054

Please sign in to comment.