From 83df143b79694d8571c732be8bf1d2b74bd25601 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Wed, 14 Feb 2018 15:10:39 -0800 Subject: [PATCH] fix defintion of length of array returned from getGamepads() --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6e6333b..6d0aaab 100644 --- a/index.html +++ b/index.html @@ -444,8 +444,8 @@

Navigator Interface extension

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 @@ -462,6 +462,7 @@

Navigator Interface extension

// The following statements should all evaluate to true. gamepads[0] == null; gamepads[1].index == 1; + gamepads.length == 2;