Skip to content

Commit 84bfd8a

Browse files
Comment out ellipsis in code blocks (mdn#18434)
Co-authored-by: Jean-Yves Perrier <[email protected]>
1 parent 28227e7 commit 84bfd8a

File tree

30 files changed

+43
-41
lines changed

30 files changed

+43
-41
lines changed

files/en-us/web/api/mediasession/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const actionHandlers = [
7878
// set playback state
7979
navigator.mediaSession.playbackState = "playing";
8080
// update our status element
81-
updateStatus(allMeta[index], 'Action: play | Track is playing...')
81+
updateStatus(allMeta[index], 'Action: play | Track is playing')
8282
}
8383
],
8484
[
@@ -89,7 +89,7 @@ const actionHandlers = [
8989
// set playback state
9090
navigator.mediaSession.playbackState = "paused";
9191
// update our status element
92-
updateStatus(allMeta[index], 'Action: pause | Track has been paused...');
92+
updateStatus(allMeta[index], 'Action: pause | Track has been paused');
9393
}
9494
],
9595
]

files/en-us/web/api/mediasession/playbackstate/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const actionHandlers = [
4949
// set playback state
5050
navigator.mediaSession.playbackState = "playing";
5151
// update our status element
52-
updateStatus(allMeta[index], 'Action: play | Track is playing...')
52+
updateStatus(allMeta[index], 'Action: play | Track is playing')
5353
}
5454
],
5555
[
@@ -60,7 +60,7 @@ const actionHandlers = [
6060
// set playback state
6161
navigator.mediaSession.playbackState = "paused";
6262
// update our status element
63-
updateStatus(allMeta[index], 'Action: pause | Track has been paused...');
63+
updateStatus(allMeta[index], 'Action: pause | Track has been paused');
6464
}
6565
],
6666
]

files/en-us/web/api/mediasession/setactionhandler/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const actionHandlers = [
125125
// set playback state
126126
navigator.mediaSession.playbackState = "playing";
127127
// update our status element
128-
updateStatus(allMeta[index], 'Action: play | Track is playing...')
128+
updateStatus(allMeta[index], 'Action: play | Track is playing')
129129
}
130130
],
131131
[
@@ -136,7 +136,7 @@ const actionHandlers = [
136136
// set playback state
137137
navigator.mediaSession.playbackState = "paused";
138138
// update our status element
139-
updateStatus(allMeta[index], 'Action: pause | Track has been paused...');
139+
updateStatus(allMeta[index], 'Action: pause | Track has been paused');
140140
}
141141
],
142142
]

files/en-us/web/api/mediasource/activesourcebuffers/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function sourceOpen (_) {
5050
});
5151
};
5252

53-
// ...
53+
//
5454
```
5555

5656
## Specifications

files/en-us/web/api/mediasource/duration/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function sourceOpen (_) {
5858
});
5959
};
6060

61-
// ...
61+
//
6262
```
6363

6464
## Specifications

files/en-us/web/api/mediasource/mediasource/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if ('MediaSource' in window && MediaSource.isTypeSupported(mimeCodec)) {
5151
console.error('Unsupported MIME type or codec: ', mimeCodec);
5252
}
5353

54-
// ...
54+
//
5555
```
5656

5757
## Browser compatibility

files/en-us/web/api/mediasource/sourcebuffers/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function sourceOpen (_) {
4646
});
4747
};
4848

49-
// ...
49+
//
5050
```
5151

5252
## Specifications

files/en-us/web/api/mediastream_recording_api/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function handleDataAvailable(event) {
6161
console.log(recordedChunks);
6262
download();
6363
} else {
64-
// ...
64+
//
6565
}
6666
}
6767
function download() {

files/en-us/web/api/mediastream_recording_api/recording_a_media_element/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function startRecording(stream, lengthInMS) {
165165

166166
recorder.ondataavailable = event => data.push(event.data);
167167
recorder.start();
168-
log(recorder.state + " for " + (lengthInMS/1000) + " seconds...");
168+
log(recorder.state + " for " + (lengthInMS/1000) + " seconds");
169169

170170
let stopped = new Promise((resolve, reject) => {
171171
recorder.onstop = resolve;

files/en-us/web/api/merchantvalidationevent/complete/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ payRequest.onmerchantvalidation = event => {
5656
}
5757

5858
function getValidationData(url) {
59-
/* ...retrieve the validation data from the URL... */
59+
// Retrieve the validation data from the URL
60+
//
6061
}
6162
```
6263

files/en-us/web/api/messageport/postmessage/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function handleMessage(e) {
6868
para.innerHTML = e.data;
6969
}
7070

71-
// in the iframe...
71+
// in the iframe
7272

7373
window.addEventListener('message', function (event) {
7474
const messagePort = event.ports?.[0];

files/en-us/web/api/mouseevent/button/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Others may have many buttons mapped to different functions and button values.
4545
### HTML
4646

4747
```html
48-
<button id="button" oncontextmenu="event.preventDefault();">Click here with your mouse...</button>
48+
<button id="button" oncontextmenu="event.preventDefault();">Click here with your mouse</button>
4949
<p id="log"></p>
5050
```
5151

files/en-us/web/api/mutationevent/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You can register a listener for mutation events using {{DOMxRef("EventTarget.add
6363

6464
```js
6565
element.addEventListener("DOMNodeInserted", function (event) {
66-
// ...
66+
//
6767
}, false);
6868
```
6969

files/en-us/web/api/mutationobserver/disconnect/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const observerOptions = {
7171
const observer = new MutationObserver(callback);
7272
observer.observe(targetNode, observerOptions);
7373

74-
/* some time later... */
74+
/* some time later */
7575

7676
observer.disconnect();
7777
```

files/en-us/web/api/mutationobserver/takerecords/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const observerOptions = {
6565
const observer = new MutationObserver(callback);
6666
observer.observe(targetNode, observerOptions);
6767

68-
/* ...later, when it's time to stop observing... */
68+
/* later, when it's time to stop observing */
6969

7070
/* handle any still-pending mutations */
7171

files/en-us/web/api/oes_vertex_array_object/bindvertexarrayoes/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ var ext = gl.getExtension('OES_vertex_array_object');
3939
var vao = ext.createVertexArrayOES();
4040
ext.bindVertexArrayOES(vao);
4141

42-
// ...
42+
//
4343
// calls to bindBuffer or vertexAttribPointer
4444
// which will be "recorded" in the VAO
45-
// ...
45+
//
4646
```
4747

4848
## Specifications

files/en-us/web/api/oes_vertex_array_object/createvertexarrayoes/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ var ext = gl.getExtension('OES_vertex_array_object');
4141
var vao = ext.createVertexArrayOES();
4242
ext.bindVertexArrayOES(vao);
4343

44-
// ...
44+
//
4545
// calls to bindBuffer or vertexAttribPointer
4646
// which will be "recorded" in the VAO
47-
// ...
47+
//
4848
```
4949

5050
## Specifications

files/en-us/web/api/oes_vertex_array_object/deletevertexarrayoes/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var ext = gl.getExtension('OES_vertex_array_object');
3939
var vao = ext.createVertexArrayOES();
4040
ext.bindVertexArrayOES(vao);
4141

42-
// ...
42+
//
4343

4444
ext.deleteVertexArrayOES(vao);
4545
```

files/en-us/web/api/oes_vertex_array_object/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ var oes_vao_ext = gl.getExtension('OES_vertex_array_object');
4444
var vao = oes_vao_ext.createVertexArrayOES();
4545
oes_vao_ext.bindVertexArrayOES(vao);
4646

47-
// ...
47+
//
4848
// calls to bindBuffer or vertexAttribPointer
4949
// which will be "recorded" in the VAO
50-
// ...
50+
//
5151
```
5252

5353
## Specifications

files/en-us/web/api/oes_vertex_array_object/isvertexarrayoes/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var ext = gl.getExtension('OES_vertex_array_object');
4141
var vao = ext.createVertexArrayOES();
4242
ext.bindVertexArrayOES(vao);
4343

44-
// ...
44+
//
4545

4646
ext.isVertexArrayOES(vao);
4747
```

files/en-us/web/api/offlineaudiocontext/offlineaudiocontext/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const offlineCtx = new OfflineAudioContext({
7474
sampleRate: 44100,
7575
});
7676
const source = offlineCtx.createBufferSource();
77-
// etc...
77+
//
7878
```
7979

8080
For a full working example, see our [offline-audio-context-promise](https://mdn.github.io/webaudio-examples/offline-audio-context-promise/)

files/en-us/web/api/orientationsensor/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Promise.all([navigator.permissions.query({ name: "accelerometer" }),
7373
.then(results => {
7474
if (results.every(result => result.state === "granted")) {
7575
sensor.start();
76-
// ...
76+
//
7777
} else {
7878
console.log("No permissions to use AbsoluteOrientationSensor.");
7979
}

files/en-us/web/api/ovr_multiview2/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ gl.bindTexture(gl.TEXTURE_2D_ARRAY, depthStencilTex);
6666
gl.texStorage3D(gl.TEXTURE_2D_ARRAY, 1, gl.DEPTH32F_STENCIL8, 512, 512, 2);
6767

6868
ext.framebufferTextureMultiviewOVR(gl.DRAW_FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, depthStencilTex, 0, 0, 2);
69-
gl.drawElements(/* ... */); // draw will be broadcasted to the layers of colorTex and depthStencilTex.
69+
gl.drawElements(/* */); // draw will be broadcasted to the layers of colorTex and depthStencilTex.
7070
```
7171

7272
Shader code

files/en-us/web/api/payment_request_api/using_the_payment_request_api/index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ In the following snippet we do just this — depending on whether the user can m
152152

153153
```js
154154
const checkoutButton = document.getElementById('checkout-button');
155-
checkoutButton.innerText = "Loading...";
155+
checkoutButton.innerText = "Loading";
156156
if (window.PaymentRequest) {
157157
let request = new PaymentRequest(buildSupportedPaymentMethodNames(),
158158
buildShoppingCartDetails());
@@ -181,7 +181,8 @@ If the checkout flow needs to know whether {{domxref("PaymentRequest.canMakePaym
181181
// The page has loaded. Should the page use PaymentRequest?
182182
// If PaymentRequest fails, should the page fallback to manual
183183
// web form checkout?
184-
const supportedPaymentMethods = [ /* ... */ ];
184+
const supportedPaymentMethods = [ /* supported methods */ ];
185+
185186
let shouldCallPaymentRequest = true;
186187
let fallbackToLegacyOnPaymentRequestFailure = false;
187188
(new PaymentRequest(supportedPaymentMethods,

files/en-us/web/api/paymentmethodchangeevent/methoddetails/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ request.onpaymentmethodchange = function(ev) {
4646
if (ev.methodName === "https://apple.com/apple-pay") {
4747
switch (cardType) {
4848
case "visa":
49-
// do Apple Pay specific handling for Visa card...
49+
// do Apple Pay specific handling for Visa card
5050
// methodDetails contains the card information
5151
const result = calculateDiscount(ev.methodDetails);
5252
Object.assign(newStuff, result);
5353
break;
5454
}
5555
}
56-
// finally...
56+
// finally
5757
ev.updateWith(newStuff);
5858
};
5959
const response = await request.show();

files/en-us/web/api/paymentmethodchangeevent/methodname/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ request.onpaymentmethodchange = function(ev) {
4747
if (ev.methodName === "https://apple.com/apple-pay") {
4848
switch (cardType) {
4949
case "visa":
50-
// do Apple Pay specific handling for Visa card...
50+
// do Apple Pay specific handling for Visa card
5151
// methodDetails contains the card information
5252
const result = calculateDiscount(ev.methodDetails);
5353
Object.assign(newStuff, result);
5454
break;
5555
}
5656
}
57-
// finally...
57+
// finally
5858
ev.updateWith(newStuff);
5959
};
6060
const response = await request.show();

files/en-us/web/api/paymentrequest/canmakepayment/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function initPaymentRequest() {
8181
return;
8282
}
8383

84-
// Otherwise... let's see if we can use Example Pay
84+
// Otherwise, let's see if we can use Example Pay
8585
const supportsExamplePay = await new PaymentRequest(
8686
[{ supportedMethods: "https://example.com/pay" }],
8787
details

files/en-us/web/api/paymentrequest/show/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ async function requestPayment() {
299299
},
300300
};
301301
const response = await request.show(updatedDetails);
302-
// Check response, etc...
302+
// Check response, etc.
303303
}
304304

305305
document.getElementById("buyButton").onclick = requestPayment;

files/en-us/web/api/paymentresponse/payerdetailchange_event/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ You could also set up the event handler using the `addEventListener()` method:
124124

125125
```js
126126
response.addEventListener("payerdetailchange", async ev => {
127-
// ...
128-
});
127+
//
128+
}
129129
```
130130
131131
## Browser compatibility

files/en-us/web/api/performance/clearresourcetimings/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ function clear_performance_timings() {
6060
// getEntries should now return zero
6161
const p = performance.getEntriesByType("resource");
6262
if (p.length == 0)
63-
console.log("... Performance data buffer cleared");
63+
console.log(" Performance data buffer cleared");
6464
else
65-
console.log("... Performance data buffer NOT cleared!");
65+
console.log(" Performance data buffer NOT cleared!");
6666
}
6767
```
6868

0 commit comments

Comments
 (0)