W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

[Bug 26203] New: Order in which index entries should be reused is unspecified

From: <bugzilla@jessica.w3.org>
Date: Wed, 25 Jun 2014 18:55:54 +0000
To: public-webapps@w3.org
Message-ID: <bug-26203-2927@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26203

            Bug ID: 26203
           Summary: Order in which index entries should be reused is
                    unspecified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Gamepad
          Assignee: ted@mielczarek.org
          Reporter: beidson@apple.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

Order in which index entries should be reused is unspecified.

The description of the index property on Gamepad states:
"if a gamepad is disconnected, and subsequently the same or a different gamepad
is then connected, index entries must be reused."

So if I have 2 gamepads, then disconnect index 0, then connect a new gamepad,
it should reuse index 0.

If I have 3 gamepads, then disconnect index 1, then connect a new gamepad, it
should reuse index 1.

But what if I have 3 gamepads, disconnect index 1, then disconnect index 0.
Then connect a new gamepad.

Which index should it reuse?  0, which is the lowest unused index?  Or 1,
because it was the first disconnected index?

I would say 0, and suggest the spec state something like:
"if a gamepad is disconnected, and subsequently the same or a different gamepad
is then connected, the lowest previously used index must be reused."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 25 June 2014 18:55:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:25 UTC