diff --git a/index.html b/index.html index fc876e4..a586dac 100644 --- a/index.html +++ b/index.html @@ -801,8 +801,15 @@

  • Let |navigator:Navigator| be |gamepad|'s [=relevant global object=]'s {{Navigator}} object.
  • +
  • Let |document:Document?| be |gamepad|'s [=relevant global + object=]'s [=associated `Document`=]; otherwise `null`. +
  • +
  • If |document| is `null`, abort these steps. +
  • If |navigator|.{{Navigator/[[hasGamepadGesture]]}} is `false` and - |gamepad| [=contains a gamepad user gesture=]: + |document| is a [=Document/fully active descendant of a top-level + traversable with user attention=] and |gamepad| [=contains a gamepad + user gesture=]:
    1. Set |navigator|.{{Navigator/[[hasGamepadGesture]]}} to `true`. @@ -818,10 +825,6 @@

    2. Set |connectedGamepad|.{{Gamepad/[[timestamp]]}} to |now|.
    3. -
    4. Let |document:Document?| be |gamepad|'s [=relevant - global object=]'s [=associated `Document`=]; otherwise - `null`. -
    5. If |document| is not `null` and is [=Document/fully active=], then [=queue a global task=] on the [=gamepad task source=] to [=fire an event=] named