[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 #25 from Jacob Rossi [MSFT] <jrossi@microsoft.com> ---
The console (unclearly) outputs undefined but is a hole in both IE and Chrome.
This code runs identical in IE and Chrome:

var g = navigator.getGamepads()
g
   {0: undefined, 1: undefined, 2: undefined, 3: undefined, length: 4, item:
function}
g.hasOwnProperty(0)
   false

So, unless I'm missing something, the only difference I see here between IE &
Chrome is that IE uses an Array and Chrome uses some GamepadList interface
(which seems wrong per spec)?

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

Received on Wednesday, 10 December 2014 23:11:28 UTC