[Bug 26181] Spec should specify the presentation of the array returned by navigator.getGamepads() w.r.t "holes"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26181

--- Comment #5 from Ted Mielczarek [:ted] <ted@mielczarek.org> ---
...apparently they're holes in IE/Chrome:

Chrome:

> navigator.getGamepads()
GamepadList {0: Gamepad, 1: undefined, 2: Gamepad, 3: undefined, length: 4,
item: function}
> navigator.getGamepads().hasOwnProperty(1)
false
> navigator.getGamepads().length
4

IE:

> navigator.getGamepads()
[
   0: undefined,
   1: { },
   2: undefined,
   3: undefined,
   length: 4
]
> navigator.getGamepads().hasOwnProperty(0)
false
> navigator.getGamepads().length
4


(it turns out Developer consoles just aren't very good at making the
distinction here)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 23 June 2014 19:12:46 UTC