diff --git a/files/en-us/web/api/imagebitmaprenderingcontext/transferfromimagebitmap/index.md b/files/en-us/web/api/imagebitmaprenderingcontext/transferfromimagebitmap/index.md
index daadf142c17b53d..e6a222e1e8ba8a3 100644
--- a/files/en-us/web/api/imagebitmaprenderingcontext/transferfromimagebitmap/index.md
+++ b/files/en-us/web/api/imagebitmaprenderingcontext/transferfromimagebitmap/index.md
@@ -54,7 +54,7 @@ const htmlCanvas = document.getElementById("htmlCanvas").getContext("bitmaprende
const offscreen = new OffscreenCanvas(256, 256);
const gl = offscreen.getContext("webgl");
-// ... some drawing using the gl context ...
+// Perform some drawing using the gl context
// Transfer the current frame to the visible canvas
const bitmap = offscreen.transferToImageBitmap();
diff --git a/files/en-us/web/api/offscreencanvas/converttoblob/index.md b/files/en-us/web/api/offscreencanvas/converttoblob/index.md
index 6664e86d8c41372..a806727782a964c 100644
--- a/files/en-us/web/api/offscreencanvas/converttoblob/index.md
+++ b/files/en-us/web/api/offscreencanvas/converttoblob/index.md
@@ -66,7 +66,7 @@ The promise may be rejected with the following exceptions:
const offscreen = new OffscreenCanvas(256, 256);
const gl = offscreen.getContext("webgl");
-// ... some drawing using the gl context ...
+// Perform some drawing using the gl context
offscreen.convertToBlob().then( blob => console.log(blob));
// Blob { size: 334, type: "image/png" }
diff --git a/files/en-us/web/api/offscreencanvas/index.md b/files/en-us/web/api/offscreencanvas/index.md
index 34b3a6dbf287313..5ca5490967f71d4 100644
--- a/files/en-us/web/api/offscreencanvas/index.md
+++ b/files/en-us/web/api/offscreencanvas/index.md
@@ -65,13 +65,13 @@ const two = document.getElementById("two").getContext("bitmaprenderer");
const offscreen = new OffscreenCanvas(256, 256);
const gl = offscreen.getContext('webgl');
-// ... some drawing for the first canvas using the gl context ...
+// Perform some drawing for the first canvas using the gl context
// Commit rendering to the first canvas
const bitmapOne = offscreen.transferToImageBitmap();
one.transferFromImageBitmap(bitmapOne);
-// ... some more drawing for the second canvas using the gl context ...
+// Perform some more drawing for the second canvas
// Commit rendering to the second canvas
const bitmapTwo = offscreen.transferToImageBitmap();
@@ -99,7 +99,7 @@ onmessage = function(evt) {
const canvas = evt.data.canvas;
const gl = canvas.getContext("webgl");
- // ... some drawing using the gl context ...
+ // Perform some drawing using the gl context
};
```
@@ -111,7 +111,7 @@ onmessage = function(evt) {
const gl = canvas.getContext("webgl");
function render(time) {
- // ... some drawing using the gl context ...
+ // Perform some drawing using the gl context
requestAnimationFrame(render);
}
requestAnimationFrame(render);
diff --git a/files/en-us/web/api/offscreencanvas/transfertoimagebitmap/index.md b/files/en-us/web/api/offscreencanvas/transfertoimagebitmap/index.md
index 0bae58a186f2659..92ba95589cee1f3 100644
--- a/files/en-us/web/api/offscreencanvas/transfertoimagebitmap/index.md
+++ b/files/en-us/web/api/offscreencanvas/transfertoimagebitmap/index.md
@@ -37,7 +37,7 @@ An {{domxref("ImageBitmap")}}.
const offscreen = new OffscreenCanvas(256, 256);
const gl = offscreen.getContext("webgl");
-// ... some drawing using the gl context ...
+// Perform some drawing using the gl context
offscreen.transferToImageBitmap();
// ImageBitmap { width: 256, height: 256 }
diff --git a/files/en-us/web/api/performanceentry/duration/index.md b/files/en-us/web/api/performanceentry/duration/index.md
index 03df5ff05c7d36e..7f821de39190ff8 100644
--- a/files/en-us/web/api/performanceentry/duration/index.md
+++ b/files/en-us/web/api/performanceentry/duration/index.md
@@ -58,10 +58,10 @@ The following example shows the use of the `duration` property.
```js
function run_PerformanceEntry() {
- log("PerformanceEntry support ...");
+ console.log("PerformanceEntry support…");
if (performance.mark === undefined) {
- log("... performance.mark Not supported");
+ console.log("The property performance.mark is not supported");
return;
}
@@ -85,18 +85,18 @@ function check_PerformanceEntry(obj) {
// check each property
const supported = properties[i] in obj;
if (supported)
- log("..." + properties[i] + " = " + obj[properties[i]]);
+ console.log("…" + properties[i] + " = " + obj[properties[i]]);
else
- log("..." + properties[i] + " = Not supported");
+ console.log("…" + properties[i] + " = Not supported");
}
for (let i=0; i < methods.length; i++) {
// check each method
const supported = typeof obj[methods[i]] == "function";
if (supported) {
const js = obj[methods[i]]();
- log("..." + methods[i] + "() = " + JSON.stringify(js));
+ console.log("…" + methods[i] + "() = " + JSON.stringify(js));
} else {
- log("..." + methods[i] + " = Not supported");
+ console.log("…" + methods[i] + " = Not supported");
}
}
}
diff --git a/files/en-us/web/api/performanceentry/name/index.md b/files/en-us/web/api/performanceentry/name/index.md
index 04f1eeda5956b2c..9977037b243c635 100644
--- a/files/en-us/web/api/performanceentry/name/index.md
+++ b/files/en-us/web/api/performanceentry/name/index.md
@@ -86,10 +86,10 @@ The following example shows the use of the `name` property.
```js
function run_PerformanceEntry() {
- log("PerformanceEntry support ...");
+ console.log("PerformanceEntry support…");
if (performance.mark === undefined) {
- log("... performance.mark Not supported");
+ console.log("The property performance.mark is not supported");
return;
}
@@ -113,18 +113,18 @@ function check_PerformanceEntry(obj) {
// check each property
const supported = properties[i] in obj;
if (supported)
- log("..." + properties[i] + " = " + obj[properties[i]]);
+ console.log("…" + properties[i] + " = " + obj[properties[i]]);
else
- log("..." + properties[i] + " = Not supported");
+ console.log("…" + properties[i] + " = Not supported");
}
for (let i=0; i < methods.length; i++) {
// check each method
const supported = typeof obj[methods[i]] == "function";
if (supported) {
const js = obj[methods[i]]();
- log("..." + methods[i] + "() = " + JSON.stringify(js));
+ console.log("…" + methods[i] + "() = " + JSON.stringify(js));
} else {
- log("..." + methods[i] + " = Not supported");
+ console.log("…" + methods[i] + " = Not supported");
}
}
}
diff --git a/files/en-us/web/api/performanceentry/starttime/index.md b/files/en-us/web/api/performanceentry/starttime/index.md
index 7adfc67d4a7b651..1359f8bd67949b0 100644
--- a/files/en-us/web/api/performanceentry/starttime/index.md
+++ b/files/en-us/web/api/performanceentry/starttime/index.md
@@ -53,10 +53,10 @@ The following example shows the use of the `startTime` property.
```js
function run_PerformanceEntry() {
- log("PerformanceEntry support ...");
+ console.log("PerformanceEntry support…");
if (performance.mark === undefined) {
- log("... performance.mark Not supported");
+ console.log("The property performance.mark is not supported");
return;
}
@@ -80,18 +80,18 @@ function check_PerformanceEntry(obj) {
// check each property
const supported = properties[i] in obj;
if (supported)
- log("..." + properties[i] + " = " + obj[properties[i]]);
+ console.log("…" + properties[i] + " = " + obj[properties[i]]);
else
- log("..." + properties[i] + " = Not supported");
+ console.log("…" + properties[i] + " = Not supported");
}
for (let i=0; i < methods.length; i++) {
// check each method
const supported = typeof obj[methods[i]] == "function";
if (supported) {
const js = obj[methods[i]]();
- log("..." + methods[i] + "() = " + JSON.stringify(js));
+ console.log("…" + methods[i] + "() = " + JSON.stringify(js));
} else {
- log("..." + methods[i] + " = Not supported");
+ console.log("…" + methods[i] + " = Not supported");
}
}
}
diff --git a/files/en-us/web/api/performanceentry/tojson/index.md b/files/en-us/web/api/performanceentry/tojson/index.md
index 4b9fb6a4fe05c28..94b2528cfc78d2e 100644
--- a/files/en-us/web/api/performanceentry/tojson/index.md
+++ b/files/en-us/web/api/performanceentry/tojson/index.md
@@ -36,10 +36,10 @@ The following example shows the use of the `toJSON()` method.
```js
function run_PerformanceEntry() {
- log("PerformanceEntry support ...");
+ console.log("PerformanceEntry support…");
if (performance.mark === undefined) {
- log("... performance.mark Not supported");
+ console.log("The roperty performance.mark is not supported");
return;
}
@@ -63,18 +63,18 @@ function check_PerformanceEntry(obj) {
// check each property
const supported = properties[i] in obj;
if (supported)
- log("..." + properties[i] + " = " + obj[properties[i]]);
+ console.log("…" + properties[i] + " = " + obj[properties[i]]);
else
- log("..." + properties[i] + " = Not supported");
+ console.log("…" + properties[i] + " = Not supported");
}
for (let i=0; i < methods.length; i++) {
// check each method
const supported = typeof obj[methods[i]] == "function";
if (supported) {
const js = obj[methods[i]]();
- log("..." + methods[i] + "() = " + JSON.stringify(js));
+ console.log("…" + methods[i] + "() = " + JSON.stringify(js));
} else {
- log("..." + methods[i] + " = Not supported");
+ console.log("…" + methods[i] + " = Not supported");
}
}
}
diff --git a/files/en-us/web/api/rtcdtlstransport/index.md b/files/en-us/web/api/rtcdtlstransport/index.md
index 37dbdccc4bbc854..691f4a2fffbee83 100644
--- a/files/en-us/web/api/rtcdtlstransport/index.md
+++ b/files/en-us/web/api/rtcdtlstransport/index.md
@@ -107,7 +107,7 @@ This example presents a function, `tallySenders()`, which iterates over an `RTCP
```js
let pc = new RTCPeerConnection({ bundlePolicy: "max-bundle" });
-/* ... */
+// …
function tallySenders(pc) {
let results = {
diff --git a/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md b/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md
index 27e435ee53ef138..ca1df233b863c5a 100644
--- a/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md
+++ b/files/en-us/web/api/rtcpeerconnection/addicecandidate/index.md
@@ -179,7 +179,7 @@ signalingChannel.onmessage = receivedString => {
if (message.ice) {
// A typical value of ice here might look something like this:
//
- // {candidate: "candidate:0 1 UDP 2122154243 192.168.1.9 53421 typ host", sdpMid: "0", ...}
+ // {candidate: "candidate:0 1 UDP 2122154243 192.168.1.9 53421 typ host", sdpMid: "0", …}
//
// Pass the whole thing to addIceCandidate:
diff --git a/files/en-us/web/api/rtcpeerconnection/addtrack/index.md b/files/en-us/web/api/rtcpeerconnection/addtrack/index.md
index ccad569463501ba..c0a09f9c36417e1 100644
--- a/files/en-us/web/api/rtcpeerconnection/addtrack/index.md
+++ b/files/en-us/web/api/rtcpeerconnection/addtrack/index.md
@@ -32,7 +32,7 @@ which will be transmitted to the other peer.>
addTrack(track)
addTrack(track, stream0)
addTrack(track, stream0, stream1)
-addTrack(track, stream0, stream1, /* ... ,*/ streamN)
+addTrack(track, stream0, stream1, /* … ,*/ streamN)
```
### Parameters
@@ -40,7 +40,7 @@ addTrack(track, stream0, stream1, /* ... ,*/ streamN)
- `track`
- : A {{domxref("MediaStreamTrack")}} object representing the media track to add to the
peer connection.
-- `stream0, ..., streamN` {{optional_inline}}
+- `stream0, …, streamN` {{optional_inline}}
- : One or more local {{domxref("MediaStream")}} objects to which the track should be
added.
@@ -237,7 +237,7 @@ is received from the remote peer.
```js
var mediaConstraints = {
audio: true, // We want an audio track
- video: true, // ...and we want a video track
+ video: true, // And we want a video track
};
var desc = new RTCSessionDescription(sdp);
diff --git a/files/en-us/web/api/rtcpeerconnection/connectionstate/index.md b/files/en-us/web/api/rtcpeerconnection/connectionstate/index.md
index e6694e2405f6b75..de0217fe5199f46 100644
--- a/files/en-us/web/api/rtcpeerconnection/connectionstate/index.md
+++ b/files/en-us/web/api/rtcpeerconnection/connectionstate/index.md
@@ -71,7 +71,7 @@ A string representing the current state of the connection, that is one of the fo
```js
var pc = new RTCPeerConnection(configuration);
-/* ... */
+// …
var connectionState = pc.connectionState;
```
diff --git a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md
index e796c7e35c52d57..72b6e3c36e4c599 100644
--- a/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md
+++ b/files/en-us/web/api/rtcpeerconnection/connectionstatechange_event/index.md
@@ -43,13 +43,13 @@ pc.onconnectionstatechange = ev => {
switch(pc.connectionState) {
case "new":
case "checking":
- setOnlineStatus("Connecting...");
+ setOnlineStatus("Connecting…");
break;
case "connected":
setOnlineStatus("Online");
break;
case "disconnected":
- setOnlineStatus("Disconnecting...");
+ setOnlineStatus("Disconnecting…");
break;
case "closed":
setOnlineStatus("Offline");
@@ -69,7 +69,7 @@ You can also create a handler for `connectionstatechange` by using {{domxref("Ev
```js
pc.addEventListener("connectionstatechange", ev => {
switch(pc.connectionState) {
- /* ... */
+ // …
}
}, false);
```
diff --git a/files/en-us/web/api/rtcpeerconnection/peeridentity/index.md b/files/en-us/web/api/rtcpeerconnection/peeridentity/index.md
index 33bd02f1f243b4b..692fd3e85d53745 100644
--- a/files/en-us/web/api/rtcpeerconnection/peeridentity/index.md
+++ b/files/en-us/web/api/rtcpeerconnection/peeridentity/index.md
@@ -54,7 +54,7 @@ the console and returns `null` to the caller.
```js
let pc = new RTCPeerConnection();
-/* ... */
+// …
async function getIdentityAssertion(pc) {
try {
diff --git a/files/en-us/web/api/screen/orientation/index.md b/files/en-us/web/api/screen/orientation/index.md
index 91b6674b76983a0..0b986ee69177469 100644
--- a/files/en-us/web/api/screen/orientation/index.md
+++ b/files/en-us/web/api/screen/orientation/index.md
@@ -33,9 +33,9 @@ var orientation = (screen.orientation || {}).type || screen.mozOrientation || sc
if (orientation === "landscape-primary") {
console.log("That looks good.");
} else if (orientation === "landscape-secondary") {
- console.log("Mmmh... the screen is upside down!");
+ console.log("Mmmh… the screen is upside down!");
} else if (orientation === "portrait-secondary" || orientation === "portrait-primary") {
- console.log("Mmmh... you should rotate your device to landscape");
+ console.log("Mmmh… you should rotate your device to landscape");
} else if (orientation === undefined) {
console.log("The orientation API isn't supported in this browser :(");
}
diff --git a/files/en-us/web/api/sensor_apis/index.md b/files/en-us/web/api/sensor_apis/index.md
index 941f15452bbfaca..c3c6a10bf379921 100644
--- a/files/en-us/web/api/sensor_apis/index.md
+++ b/files/en-us/web/api/sensor_apis/index.md
@@ -32,7 +32,7 @@ The examples below show three methods for detecting sensor APIs. Additionally yo
```js
if (typeof Gyroscope === "function") {
- // run in circles...
+ // run in circles…
}
if ("ProximitySensor" in window) {
@@ -40,7 +40,7 @@ if ("ProximitySensor" in window) {
}
if (window.AmbientLightSensor) {
- // go dark...
+ // go dark…
}
```
diff --git a/files/en-us/web/api/serialport/index.md b/files/en-us/web/api/serialport/index.md
index f9dc21bab1477f6..510d980e5e3d50c 100644
--- a/files/en-us/web/api/serialport/index.md
+++ b/files/en-us/web/api/serialport/index.md
@@ -72,10 +72,10 @@ while (port.readable) {
// |reader| has been canceled.
break;
}
- // Do something with |value|...
+ // Do something with |value|…
}
} catch (error) {
- // Handle |error|...
+ // Handle |error|…
} finally {
reader.releaseLock();
}
diff --git a/files/en-us/web/api/serialport/readable/index.md b/files/en-us/web/api/serialport/readable/index.md
index 48ee052ec025760..4f7c58327dfcefe 100644
--- a/files/en-us/web/api/serialport/readable/index.md
+++ b/files/en-us/web/api/serialport/readable/index.md
@@ -32,10 +32,10 @@ while (port.readable) {
// |reader| has been canceled.
break;
}
- // Do something with |value|...
+ // Do something with |value|…
}
} catch (error) {
- // Handle |error|...
+ // Handle |error|…
} finally {
reader.releaseLock();
}
diff --git a/files/en-us/web/api/service_worker_api/using_service_workers/index.md b/files/en-us/web/api/service_worker_api/using_service_workers/index.md
index 06937c0c14c91a6..927bf45f0b74b1e 100644
--- a/files/en-us/web/api/service_worker_api/using_service_workers/index.md
+++ b/files/en-us/web/api/service_worker_api/using_service_workers/index.md
@@ -80,7 +80,7 @@ const registerServiceWorker = async () => {
}
};
-// ...
+// …
registerServiceWorker();
```
@@ -469,7 +469,7 @@ self.addEventListener('install', (event) => {
// ...
- // include other new resources for the new version...
+ // include other new resources for the new version…
]
));
});
diff --git a/files/en-us/web/api/serviceworkercontainer/message_event/index.md b/files/en-us/web/api/serviceworkercontainer/message_event/index.md
index 6963b1b173f81be..de1cec22d0908e1 100644
--- a/files/en-us/web/api/serviceworkercontainer/message_event/index.md
+++ b/files/en-us/web/api/serviceworkercontainer/message_event/index.md
@@ -60,7 +60,7 @@ async function messageClient(clientId) {
addEventListener('fetch', (event) => {
messageClient(event.clientId);
event.respondWith(() => {
- // ...
+ // …
});
});
```
diff --git a/files/en-us/web/api/serviceworkercontainer/startmessages/index.md b/files/en-us/web/api/serviceworkercontainer/startmessages/index.md
index 75bb6f2c330536b..6326047a3c58457 100644
--- a/files/en-us/web/api/serviceworkercontainer/startmessages/index.md
+++ b/files/en-us/web/api/serviceworkercontainer/startmessages/index.md
@@ -57,10 +57,10 @@ if('serviceWorker' in navigator) {
.then(function() { console.log('Service Worker Registered'); });
}
-// ...
+// …
navigator.serviceWorker.addEventListener('message', (e) => {
- // ...
+ // …
});
navigator.serviceWorker.startMessages();
diff --git a/files/en-us/web/api/serviceworkerglobalscope/fetch_event/index.md b/files/en-us/web/api/serviceworkerglobalscope/fetch_event/index.md
index 29a6e0ee727c85a..27a6d4ce5a8c0f5 100644
--- a/files/en-us/web/api/serviceworkerglobalscope/fetch_event/index.md
+++ b/files/en-us/web/api/serviceworkerglobalscope/fetch_event/index.md
@@ -36,7 +36,7 @@ A generic {{domxref("Event")}}.
## Syntax
```js
-serviceWorkerGlobalScope.onfetch = function(fetchEvent) { /* ... */ };
+serviceWorkerGlobalScope.onfetch = function(fetchEvent) { /* … */ };
```
## Example
@@ -62,7 +62,7 @@ self.addEventListener('fetch', function(event) {
return response;
}
- console.log('No response found in cache. About to fetch from network...');
+ console.log('No response found in cache. About to fetch from network…');
return fetch(event.request).then(function(response) {
console.log('Response from network is:', response);
diff --git a/files/en-us/web/api/serviceworkerglobalscope/index.md b/files/en-us/web/api/serviceworkerglobalscope/index.md
index 4551065e8816380..30f4cdf8d85e083 100644
--- a/files/en-us/web/api/serviceworkerglobalscope/index.md
+++ b/files/en-us/web/api/serviceworkerglobalscope/index.md
@@ -86,7 +86,7 @@ self.addEventListener('fetch', function(event) {
return response;
}
- console.log('No response found in cache. About to fetch from network...');
+ console.log('No response found in cache. About to fetch from network…');
return fetch(event.request).then(function(response) {
console.log('Response from network is:', response);
diff --git a/files/en-us/web/api/setinterval/index.md b/files/en-us/web/api/setinterval/index.md
index 19426eaa9896537..7ccfb4bb90a94eb 100644
--- a/files/en-us/web/api/setinterval/index.md
+++ b/files/en-us/web/api/setinterval/index.md
@@ -37,7 +37,7 @@ setInterval(func)
setInterval(func, delay)
setInterval(func, delay, arg0)
setInterval(func, delay, arg0, arg1)
-setInterval(func, delay, arg0, arg1, /* ... ,*/ argN)
+setInterval(func, delay, arg0, arg1, /* … ,*/ argN)
```
### Parameters
@@ -53,7 +53,7 @@ setInterval(func, delay, arg0, arg1, /* ... ,*/ argN)
- : The time, in milliseconds (thousandths of a second), the timer should delay in
between executions of the specified function or code. Defaults to 0 if not specified. See [Delay restrictions](#delay_restrictions)
below for details on the permitted range of `delay` values.
-- `arg0, ..., argN` {{optional_inline}}
+- `arg0, …, argN` {{optional_inline}}
- : Additional arguments which are passed through to the function specified by
_func_ once the timer expires.
diff --git a/files/en-us/web/api/settimeout/index.md b/files/en-us/web/api/settimeout/index.md
index b5f971569f7e600..16fe47e1ffbdf1a 100644
--- a/files/en-us/web/api/settimeout/index.md
+++ b/files/en-us/web/api/settimeout/index.md
@@ -29,7 +29,7 @@ setTimeout(functionRef)
setTimeout(functionRef, delay)
setTimeout(functionRef, delay, param1)
setTimeout(functionRef, delay, param1, param2)
-setTimeout(functionRef, delay, param1, param2, /* ... ,*/ paramN)
+setTimeout(functionRef, delay, param1, param2, /* … ,*/ paramN)
```
### Parameters
diff --git a/files/en-us/web/api/storage_access_api/index.md b/files/en-us/web/api/storage_access_api/index.md
index d1b69edea2d1b10..d12bc480d41bd92 100644
--- a/files/en-us/web/api/storage_access_api/index.md
+++ b/files/en-us/web/api/storage_access_api/index.md
@@ -33,7 +33,7 @@ In addition, sandboxed {{htmlelement("iframe")}}s cannot be granted storage acce
```
diff --git a/files/en-us/web/api/storage_access_api/using/index.md b/files/en-us/web/api/storage_access_api/using/index.md
index 777dcb2292938ba..8497b975f196b77 100644
--- a/files/en-us/web/api/storage_access_api/using/index.md
+++ b/files/en-us/web/api/storage_access_api/using/index.md
@@ -28,7 +28,7 @@ First of all, if the `