Skip to content

Commit

Permalink
editorial: Use Web IDL's definition conventions for methods and gette…
Browse files Browse the repository at this point in the history
…rs. (w3c#330)

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 authored Dec 7, 2021
1 parent 1109ef5 commit d89d5bf
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 @@ -309,9 +309,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 @@ -481,8 +479,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 @@ -495,17 +493,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 d89d5bf

Please sign in to comment.