Skip to content

Commit

Permalink
Merge pull request #205 from w3c/undefined-gamepads
Browse files Browse the repository at this point in the history
Editorial: Add missing steps in getGamepads
  • Loading branch information
nondebug authored Aug 8, 2024
2 parents 471b047 + 3d70962 commit 142b40d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,8 @@ <h3>
The {{Navigator/getGamepads()}} method steps are:
</p>
<ol>
<li>Let |doc| be the [=current global object=]'s [=associated
`Document`=].
<li>Let |doc:Document?| be the [=current global object=]'s
[=associated `Document`=].
</li>
<li>If |doc| is `null` or |doc| is not [=Document/fully active=],
then return an empty [=list=].
Expand All @@ -1697,6 +1697,8 @@ <h3>
<li>Let |now:DOMHighResTimeStamp| be the [=current high resolution
time=].
</li>
<li>Let |gamepads:sequence&lt;Gamepad?&gt;| be an empty [=list=].
</li>
<li>[=list/For each=] |gamepad:Gamepad| of
[=this=].{{Navigator/[[gamepads]]}}:
<ol>
Expand All @@ -1709,6 +1711,8 @@ <h3>
</li>
</ol>
</li>
<li>[=list/Append=] |gamepad| to |gamepads|.
</li>
</ol>
</li>
<li>Return |gamepads|.
Expand Down

0 comments on commit 142b40d

Please sign in to comment.