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 Web IDL's definition conventions for methods and getters. #330

Merged
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
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:
marcoscaceres marked this conversation as resolved.
Show resolved Hide resolved
</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