This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-Navigator-getGamepads-sequence-Gamepad "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." This offers more flexibility than seems useful, allowing e.g. an array of length 100 to always be returned. Always returning an array of the minimum length possible seems better.
I'm not really sure why this is spec'ed this way, I think Scott wrote that text. I know Chrome (and possibly IE) always return an Array of length 4 even when no gamepads are connected. Firefox always returns an array of the minimum possible length.
Yes, Chrome does that, but it makes no sense to me :)
I guess it made more sense when the object returned (GamepadList) is the same every time, less so when you return a new array every time.
Moved to https://github.com/w3c/gamepad/issues/13