From d7904a9582702b6cef0a73ac147326278df5df18 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 11 Mar 2021 18:25:00 -0500 Subject: [PATCH] fix: flaws in web/api/g* --- files/en-us/web/api/gainnode/gain/index.html | 2 +- .../web/api/gainnode/gainnode/index.html | 16 ++++++------ files/en-us/web/api/gamepad/axes/index.html | 18 ++++++------- .../en-us/web/api/gamepad/buttons/index.html | 18 ++++++------- .../web/api/gamepad/connected/index.html | 18 ++++++------- files/en-us/web/api/gamepad/id/index.html | 18 ++++++------- files/en-us/web/api/gamepad/index.html | 2 +- files/en-us/web/api/gamepad/index/index.html | 18 ++++++------- .../en-us/web/api/gamepad/mapping/index.html | 18 ++++++------- .../web/api/gamepad/timestamp/index.html | 18 ++++++------- files/en-us/web/api/gamepad_api/index.html | 2 +- .../using_the_gamepad_api/index.html | 2 +- files/en-us/web/api/gamepadbutton/index.html | 2 +- .../web/api/gamepadbutton/pressed/index.html | 18 ++++++------- .../web/api/gamepadbutton/value/index.html | 18 ++++++------- .../web/api/gamepadevent/gamepad/index.html | 12 ++++----- files/en-us/web/api/gamepadevent/index.html | 2 +- .../api/gamepadpose/hasorientation/index.html | 2 +- .../api/gamepadpose/hasposition/index.html | 2 +- .../web/api/geolocation/clearwatch/index.html | 16 ++++++------ .../api/geolocation/watchposition/index.html | 16 ++++++------ .../accuracy/index.html | 14 +++++----- .../altitude/index.html | 14 +++++----- .../altitudeaccuracy/index.html | 14 +++++----- .../geolocationcoordinates/heading/index.html | 16 ++++++------ .../web/api/geolocationcoordinates/index.html | 4 +-- .../latitude/index.html | 2 +- .../longitude/index.html | 26 +++++++++---------- .../geolocationcoordinates/speed/index.html | 14 +++++----- .../api/geolocationposition/coords/index.html | 14 +++++----- .../web/api/geolocationposition/index.html | 2 +- .../geolocationposition/timestamp/index.html | 2 +- .../geolocationpositionerror/code/index.html | 14 +++++----- .../api/geolocationpositionerror/index.html | 2 +- .../message/index.html | 14 +++++----- .../globaleventhandlers/onemptied/index.html | 6 ++--- .../globaleventhandlers/onerror/index.html | 14 +++++----- .../globaleventhandlers/onfocus/index.html | 14 +++++----- .../globaleventhandlers/oninvalid/index.html | 12 ++++----- .../globaleventhandlers/onkeydown/index.html | 18 ++++++------- .../globaleventhandlers/onkeypress/index.html | 14 +++++----- .../globaleventhandlers/onkeyup/index.html | 20 +++++++------- .../onmousewheel/index.html | 2 +- .../ontransitioncancel/index.html | 24 ++++++++--------- files/en-us/web/api/gyroscope/index.html | 2 +- 45 files changed, 258 insertions(+), 258 deletions(-) diff --git a/files/en-us/web/api/gainnode/gain/index.html b/files/en-us/web/api/gainnode/gain/index.html index 677baf8d5491098..ee71ca2b15edee6 100644 --- a/files/en-us/web/api/gainnode/gain/index.html +++ b/files/en-us/web/api/gainnode/gain/index.html @@ -58,5 +58,5 @@

Browser compatibility

See also

diff --git a/files/en-us/web/api/gainnode/gainnode/index.html b/files/en-us/web/api/gainnode/gainnode/index.html index d8601ea2863a210..6d80c804dae4666 100644 --- a/files/en-us/web/api/gainnode/gainnode/index.html +++ b/files/en-us/web/api/gainnode/gainnode/index.html @@ -2,13 +2,13 @@ title: GainNode() slug: Web/API/GainNode/GainNode tags: -- API -- Audio -- Constructor -- GainNode -- Media -- Reference -- Web Audio API + - API + - Audio + - Constructor + - GainNode + - Media + - Reference + - Web Audio API ---

{{APIRef("Web Audio API")}}

@@ -19,7 +19,7 @@

Note: You should typically call - {{domxref("AudioContext.createGain()")}} to create a gain node.

+ {{domxref("BaseAudioContext.createGain")}} to create a gain node.

Syntax

diff --git a/files/en-us/web/api/gamepad/axes/index.html b/files/en-us/web/api/gamepad/axes/index.html index 3be102a563a6698..25574c6d91ad298 100644 --- a/files/en-us/web/api/gamepad/axes/index.html +++ b/files/en-us/web/api/gamepad/axes/index.html @@ -2,14 +2,14 @@ title: Gamepad.axes slug: Web/API/Gamepad/axes tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -77,4 +77,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/buttons/index.html b/files/en-us/web/api/gamepad/buttons/index.html index b83aa3dafba8884..05fc92b3e019c51 100644 --- a/files/en-us/web/api/gamepad/buttons/index.html +++ b/files/en-us/web/api/gamepad/buttons/index.html @@ -2,14 +2,14 @@ title: Gamepad.buttons slug: Web/API/Gamepad/buttons tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -111,4 +111,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/connected/index.html b/files/en-us/web/api/gamepad/connected/index.html index 77568a271293b34..79c0712defc03af 100644 --- a/files/en-us/web/api/gamepad/connected/index.html +++ b/files/en-us/web/api/gamepad/connected/index.html @@ -2,14 +2,14 @@ title: Gamepad.connected slug: Web/API/Gamepad/connected tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -58,4 +58,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/id/index.html b/files/en-us/web/api/gamepad/id/index.html index 8debd70426a38fe..6935017cd4a74f2 100644 --- a/files/en-us/web/api/gamepad/id/index.html +++ b/files/en-us/web/api/gamepad/id/index.html @@ -2,14 +2,14 @@ title: Gamepad.id slug: Web/API/Gamepad/id tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---
{{APIRef("Gamepad API")}}
@@ -69,4 +69,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/index.html b/files/en-us/web/api/gamepad/index.html index 193c3a9c0516584..0e9862e891cc8d5 100644 --- a/files/en-us/web/api/gamepad/index.html +++ b/files/en-us/web/api/gamepad/index.html @@ -90,6 +90,6 @@

Browser compatibility

See also

diff --git a/files/en-us/web/api/gamepad/index/index.html b/files/en-us/web/api/gamepad/index/index.html index 1ec55e3916df870..65f19f01eaf5170 100644 --- a/files/en-us/web/api/gamepad/index/index.html +++ b/files/en-us/web/api/gamepad/index/index.html @@ -2,14 +2,14 @@ title: Gamepad.index slug: Web/API/Gamepad/index tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---
{{APIRef("Gamepad API")}}
@@ -59,4 +59,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/mapping/index.html b/files/en-us/web/api/gamepad/mapping/index.html index 4ab0de41623d8e0..9dfc88eafaf9750 100644 --- a/files/en-us/web/api/gamepad/mapping/index.html +++ b/files/en-us/web/api/gamepad/mapping/index.html @@ -2,14 +2,14 @@ title: Gamepad.mapping slug: Web/API/Gamepad/mapping tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -59,4 +59,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad/timestamp/index.html b/files/en-us/web/api/gamepad/timestamp/index.html index 0dad93b33b3090d..a20708f232f5efa 100644 --- a/files/en-us/web/api/gamepad/timestamp/index.html +++ b/files/en-us/web/api/gamepad/timestamp/index.html @@ -2,14 +2,14 @@ title: Gamepad.timestamp slug: Web/API/Gamepad/timestamp tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---
{{APIRef("Gamepad API")}}
@@ -66,4 +66,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepad_api/index.html b/files/en-us/web/api/gamepad_api/index.html index 0fb7a21183728e1..0aed3a3e91b9e1b 100644 --- a/files/en-us/web/api/gamepad_api/index.html +++ b/files/en-us/web/api/gamepad_api/index.html @@ -32,7 +32,7 @@

Experimental Gamepad extensions

Represents the pose of a controller (e.g. position and orientation in 3D space) in the case of a WebVR controller. This is not used by the newer WebXR standard.
-

See also the extensions to the Gamepad interface, for features that allow you to access the above information.

+

See also the extensions to the Gamepad interface, for features that allow you to access the above information.

Extensions to other interfaces

diff --git a/files/en-us/web/api/gamepad_api/using_the_gamepad_api/index.html b/files/en-us/web/api/gamepad_api/using_the_gamepad_api/index.html index bd723afbe4b5474..a6af2e7b4c5134c 100644 --- a/files/en-us/web/api/gamepad_api/using_the_gamepad_api/index.html +++ b/files/en-us/web/api/gamepad_api/using_the_gamepad_api/index.html @@ -130,7 +130,7 @@

Using button information

cancelRequestAnimationFrame(start); }); -

Chrome does things differently here. Instead of constantly storing the gamepad's latest state in a variable it only stores a snapshot, so to do the same thing in Chrome you have to keep polling it and then only use the {{ domxref("Gamepad") }} object in code when it is available. We have done this below using {{ domxref("Window.setInterval()") }}; once the object is available the gamepad info is outputted, the game loop is started, and the interval is cleared using {{ domxref("Window.clearInterval()") }}. Note that in older versions of Chrome {{ domxref("Navigator.getGamepads()") }} is implemented with a webkit prefix. We attempt to detect and handle both the prefixed version and the standard version of the function for backwards compatibility.

+

Chrome does things differently here. Instead of constantly storing the gamepad's latest state in a variable it only stores a snapshot, so to do the same thing in Chrome you have to keep polling it and then only use the {{ domxref("Gamepad") }} object in code when it is available. We have done this below using {{ domxref("WindowOrWorkerGlobalScope.setInterval") }}; once the object is available the gamepad info is outputted, the game loop is started, and the interval is cleared using {{ domxref("WindowOrWorkerGlobalScope.clearInterval") }}. Note that in older versions of Chrome {{ domxref("Navigator.getGamepads()") }} is implemented with a webkit prefix. We attempt to detect and handle both the prefixed version and the standard version of the function for backwards compatibility.

var interval;
 
diff --git a/files/en-us/web/api/gamepadbutton/index.html b/files/en-us/web/api/gamepadbutton/index.html
index 54a78305728e5e8..73bc06c8b17538b 100644
--- a/files/en-us/web/api/gamepadbutton/index.html
+++ b/files/en-us/web/api/gamepadbutton/index.html
@@ -89,4 +89,4 @@ 

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepadbutton/pressed/index.html b/files/en-us/web/api/gamepadbutton/pressed/index.html index ada70a90e2b40a7..4d10664a216ac3b 100644 --- a/files/en-us/web/api/gamepadbutton/pressed/index.html +++ b/files/en-us/web/api/gamepadbutton/pressed/index.html @@ -2,14 +2,14 @@ title: GamepadButton.pressed slug: Web/API/GamepadButton/pressed tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -59,5 +59,5 @@

Browser compatibility

See also

diff --git a/files/en-us/web/api/gamepadbutton/value/index.html b/files/en-us/web/api/gamepadbutton/value/index.html index 550de47275d4ca1..a35961ddaed199b 100644 --- a/files/en-us/web/api/gamepadbutton/value/index.html +++ b/files/en-us/web/api/gamepadbutton/value/index.html @@ -2,14 +2,14 @@ title: GamepadButton.value slug: Web/API/GamepadButton/value tags: -- API -- Gamepad API -- Games -- NeedsBetterSpecLink -- NeedsMarkupWork -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Games + - NeedsBetterSpecLink + - NeedsMarkupWork + - Property + - Reference + - Référence(2) ---

{{APIRef("Gamepad API")}}

@@ -62,4 +62,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepadevent/gamepad/index.html b/files/en-us/web/api/gamepadevent/gamepad/index.html index cd9cbd2b2309a3f..8cb52546972d79a 100644 --- a/files/en-us/web/api/gamepadevent/gamepad/index.html +++ b/files/en-us/web/api/gamepadevent/gamepad/index.html @@ -2,11 +2,11 @@ title: GamepadEvent.gamepad slug: Web/API/GamepadEvent/gamepad tags: -- API -- Gamepad API -- Property -- Reference -- Référence(2) + - API + - Gamepad API + - Property + - Reference + - Référence(2) ---
{{APIRef("Gamepad API")}}
@@ -58,4 +58,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepadevent/index.html b/files/en-us/web/api/gamepadevent/index.html index 139bf2e376d3f02..1902375ea73f69b 100644 --- a/files/en-us/web/api/gamepadevent/index.html +++ b/files/en-us/web/api/gamepadevent/index.html @@ -66,4 +66,4 @@

Browser compatibility

See also

-

Using the Gamepad API

+

Using the Gamepad API

diff --git a/files/en-us/web/api/gamepadpose/hasorientation/index.html b/files/en-us/web/api/gamepadpose/hasorientation/index.html index f9b3034fff07a2d..a206a72a6e46c68 100644 --- a/files/en-us/web/api/gamepadpose/hasorientation/index.html +++ b/files/en-us/web/api/gamepadpose/hasorientation/index.html @@ -18,7 +18,7 @@

Syntax

-
var hasItGotOrientation = gamepadPoseInstance.hasOrientation;
+
var hasItGotOrientation = gamepadPoseInstance.hasOrientation;

Value

diff --git a/files/en-us/web/api/gamepadpose/hasposition/index.html b/files/en-us/web/api/gamepadpose/hasposition/index.html index 24a862eee21c251..073755df36bc413 100644 --- a/files/en-us/web/api/gamepadpose/hasposition/index.html +++ b/files/en-us/web/api/gamepadpose/hasposition/index.html @@ -18,7 +18,7 @@

Syntax

-
var hasItGotPosition = gamepadPoseInstance.hasPosition;
+
var hasItGotPosition = gamepadPoseInstance.hasPosition;

Value

diff --git a/files/en-us/web/api/geolocation/clearwatch/index.html b/files/en-us/web/api/geolocation/clearwatch/index.html index e87346df9aea1d9..cb339dc518e26a8 100644 --- a/files/en-us/web/api/geolocation/clearwatch/index.html +++ b/files/en-us/web/api/geolocation/clearwatch/index.html @@ -2,13 +2,13 @@ title: Geolocation.clearWatch() slug: Web/API/Geolocation/clearWatch tags: -- API -- Geolocation -- Geolocation API -- Method -- NeedsExample -- Reference -- Secure context + - API + - Geolocation + - Geolocation API + - Method + - NeedsExample + - Reference + - Secure context ---

{{securecontext_header}}{{ APIref("Geolocation API") }}

@@ -85,7 +85,7 @@

Browser compatibility

See also