Skip to content

Commit

Permalink
fix defintion of length of array returned from getGamepads()
Browse files Browse the repository at this point in the history
  • Loading branch information
sgraham committed Feb 14, 2018
1 parent e7b58b8 commit 83df143
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ <h2>Navigator Interface extension</h2>
with, devices MUST NOT appear in the list to avoid a malicious page
from fingerprinting the user.

The length of the array returned MUST be at least one more than the
maximum index value of the Gamepad objects returned in the array.
The length of the array returned MUST be one more than the maximum
index value of the Gamepad objects returned in the array.

The entries in the array MUST be the set of Gamepad objects that
are visible to the current page, with each Gamepad present at the
Expand All @@ -462,6 +462,7 @@ <h2>Navigator Interface extension</h2>
// The following statements should all evaluate to true.
gamepads[0] == null;
gamepads[1].index == 1;
gamepads.length == 2;
</pre>
</dd>
</dl>
Expand Down

0 comments on commit 83df143

Please sign in to comment.