[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

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #27 from Philip Jägenstedt <philipj@opera.com> ---
It would be great to resolve this so that GamepadList can be retired in Blink:
https://codereview.chromium.org/808643005/

Doing what the spec currently says with hasOwnPropety(n) being false for the
holes seems tricky. Null is easier to implement, but then Array.forEach won't
skip those entries, if that was the idea.

Off-topically, I'd be interested to know what purpose Gamepad.index and trying
to preserve that index in the returned array serves. It seems a bit odd, but I
assume it's been discussed to death already.

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

Received on Wednesday, 17 December 2014 23:04:47 UTC