[Bug 27986] New: Specify exact length of array returned by Navigator.getGamepads()

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

            Bug ID: 27986
           Summary: Specify exact length of array returned by
                    Navigator.getGamepads()
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Gamepad
          Assignee: ted@mielczarek.org
          Reporter: philipj@opera.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 9 February 2015 11:13:41 UTC