Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions files/en-us/web/api/abortsignal/throwifaborted/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The promise is rejected immediately if the signal is already aborted, or if the
Otherwise it completes normally and then resolves the promise.

```js
function myCoolPromiseAPI(..., {signal}) {
function myCoolPromiseAPI(/* … ,*/ {signal}) {
return new Promise((resolve, reject) => {
// If the signal is already aborted, immediately throw in order to reject the promise.
if (signal.aborted) {
Expand Down Expand Up @@ -100,8 +100,8 @@ const signal = controller.signal;

startSpinner();

myCoolPromiseAPI({ ..., signal })
.then(result => ...)
myCoolPromiseAPI({ /* … ,*/ signal })
.then(result => { })
.catch(err => {
if (err.name == 'AbortError') return;
showUserErrorMessage();
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/convolvernode/buffer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An {{domxref("AudioBuffer")}}.
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
const convolver = audioCtx.createConvolver();

...
// …

// grab audio track via XHR for convolver node

Expand All @@ -51,7 +51,7 @@ ajaxRequest.onload = function() {

ajaxRequest.send();

...
// …

convolver.buffer = concertHallBuffer;
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/convolvernode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function createReverb() {
return convolver;
}

...
// …

let reverb = await createReverb();

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/convolvernode/normalize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ A boolean.
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
const convolver = audioCtx.createConvolver();

...
// …

// grab audio track via XHR for convolver node

Expand All @@ -56,7 +56,7 @@ ajaxRequest.onload = function() {

ajaxRequest.send();

...
// …

convolver.normalize = false; // must be set before the buffer, to take effect
convolver.buffer = concertHallBuffer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
const writableStream = new WritableStream({
// Implement the sink
write(chunk) {
...
// …
},
close() {
...
// …
},
abort(err) {
console.log("Sink error:", err);
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/countqueuingstrategy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const queueingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
const writableStream = new WritableStream({
// Implement the sink
write(chunk) {
...
// …
},
close() {
...
// …
},
abort(err) {
console.log("Sink error:", err);
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/countqueuingstrategy/size/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
const writableStream = new WritableStream({
// Implement the sink
write(chunk) {
...
// …
},
close() {
...
// …
},
abort(err) {
console.log("Sink error:", err);
Expand Down
16 changes: 8 additions & 8 deletions files/en-us/web/api/css_painting_api/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ paint(ctx, size, props, args) {
ctx.fillStyle = 'transparent';
ctx.strokeStyle = color;
}
...
// …
}
```

Expand Down Expand Up @@ -452,15 +452,15 @@ Now we can access the type and value properties, meaning we can get the number o
```js
paint(ctx, size, props, args) {

const strokeWidth = args[1];
const strokeWidth = args[1];

if (strokeWidth.unit === 'px') {
ctx.lineWidth = strokeWidth.value;
} else {
ctx.lineWidth = 1.0;
}
if (strokeWidth.unit === 'px') {
ctx.lineWidth = strokeWidth.value;
} else {
ctx.lineWidth = 1.0;
}

...
// …
}
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssnumericvalue/max/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ passed. The passed values must be of the same type.
## Syntax

```js
max(number1, /* ..., */ numberN)
max(number1, /* , */ numberN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssnumericvalue/min/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ values passed. The passed values must be of the same type.
## Syntax

```js
min(number1, /* ..., */ numberN)
min(number1, /* , */ numberN)
```

### Parameters
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/datatransferitemlist/add/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function dragstart_handler(ev) {
const dataList = ev.dataTransfer.items;
dataList.add(ev.target.id, "text/plain");
// Add some other items to the drag payload
dataList.add("<p>... paragraph ...</p>", "text/html");
dataList.add("<p>Paragraph…</p>", "text/html");
dataList.add("http://www.example.org","text/uri-list");
}

Expand All @@ -109,12 +109,12 @@ function drop_handler(ev) {
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/html'))) {
// Drag data item is HTML
data[i].getAsString(function (s){
console.log("... Drop: HTML = " + s);
console.log(" Drop: HTML = " + s);
});
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/uri-list'))) {
// Drag data item is URI
data[i].getAsString(function (s){
console.log("... Drop: URI = " + s);
console.log(" Drop: URI = " + s);
});
}
}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/datatransferitemlist/clear/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function dragstart_handler(ev) {
let dataList = ev.dataTransfer.items;
dataList.add(ev.target.id, "text/plain");
// Add some other items to the drag payload
dataList.add("<p>... paragraph ...</p>", "text/html");
dataList.add("<p>Paragraph…</p>", "text/html");
dataList.add("http://www.example.org","text/uri-list");
}

Expand All @@ -93,12 +93,12 @@ function drop_handler(ev) {
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/html'))) {
// Drag data item is HTML
data[i].getAsString(function (s){
console.log("... Drop: HTML = " + s);
console.log(" Drop: HTML = " + s);
});
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/uri-list'))) {
// Drag data item is URI
data[i].getAsString(function (s){
console.log("... Drop: URI = " + s);
console.log(" Drop: URI = " + s);
});
}
}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/datatransferitemlist/length/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function dragstart_handler(ev) {
const dataList = ev.dataTransfer.items;
dataList.add(ev.target.id, "text/plain");
// Add some other items to the drag payload
dataList.add("<p>... paragraph ...</p>", "text/html");
dataList.add("<p>Paragraph…</p>", "text/html");
dataList.add("http://www.example.org","text/uri-list");
}

Expand All @@ -59,12 +59,12 @@ function drop_handler(ev) {
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/html'))) {
// Drag data item is HTML
data[i].getAsString(function (s){
console.log("... Drop: HTML = " + s);
console.log(" Drop: HTML = " + s);
});
} else if ((data[i].kind == 'string') && (data[i].type.match('^text/uri-list'))) {
// Drag data item is URI
data[i].getAsString(function (s){
console.log("... Drop: URI = " + s);
console.log(" Drop: URI = " + s);
});
}
}
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/datatransferitemlist/remove/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function dragstart_handler(ev) {
const dataList = ev.dataTransfer.items;
dataList.add(ev.target.id, 'text/plain');
// Add some other items to the drag payload
dataList.add('<p>... paragraph ...</p>', 'text/html');
dataList.add('<p>Paragraph…</p>', 'text/html');
dataList.add('http://www.example.org','text/uri-list');
}

Expand All @@ -107,13 +107,13 @@ function drop_handler(ev) {
(item.type.match('^text/html'))) {
// Drag data item is HTML
item.getAsString(function (s){
console.log('... Drop: HTML = ' + s);
console.log(' Drop: HTML = ' + s);
});
} else if ((item.kind == 'string') &&
(item.type.match('^text/uri-list'))) {
// Drag data item is URI
item.getAsString(function (s){
console.log('... Drop: URI = ' + s);
console.log(' Drop: URI = ' + s);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/append/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This method appends a child to a `Document`. To append to an arbitrary element i
```js
append(param1)
append(param1, param2)
append(param1, param2, /* ... ,*/ paramN)
append(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/createelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ExpandingList extends HTMLUListElement {
super();

// constructor definition left out for brevity
...
// …
}
}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/createtouchlist/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The **`Document.createTouchList()`** method creates and returns a new {{DOMxRef(
```js
createTouchList(touch1)
createTouchList(touch1, touch2)
createTouchList(touch1, touch2, /* ... ,*/ touchN)
createTouchList(touch1, touch2, /* ,*/ touchN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/prepend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This method prepends a child to a `Document`. To prepend to an arbitrary element
```js
prepend(param1)
prepend(param1, param2)
prepend(param1, param2, /* ... ,*/ paramN)
prepend(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ the action.
var flg = document.queryCommandSupported("SelectAll");

if(flg) {
// ...Do something
// Do something
}
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/replacechildren/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ existing children of a `Document` with a specified new set of children.
```js
replaceChildren(param1)
replaceChildren(param1, param2)
replaceChildren(param1, param2, /* ... ,*/ paramN)
replaceChildren(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,14 @@ If you need to rely on `inline-block`, you could set the [`font-size`](/en-US/do
```css
ul {
font-size: 0;
...
/* … */
}

li {
display: inline-block;
width: 2rem;
height: 2rem;
...
/* … */
}
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/documentfragment/append/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This method appends a child to a `DocumentFragment`. To append to an arbitrary e
```js
append(param1)
append(param1, param2)
append(param1, param2, /* ... ,*/ paramN)
append(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/documentfragment/prepend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This method prepends a child to a `DocumentFragment`. To prepend to an arbitrary
```js
prepend(param1)
prepend(param1, param2)
prepend(param1, param2, /* ... ,*/ paramN)
prepend(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ can be string or {{domxref("Node")}} objects.
```js
replaceChildren(param1)
replaceChildren(param1, param2)
replaceChildren(param1, param2, /* ... ,*/ paramN)
replaceChildren(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/documenttype/after/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Strings are inserted as equivalent {{domxref("Text")}} nodes.
```js
after(param1)
after(param1, param2)
after(param1, param2, /* ... ,*/ paramN)
after(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/documenttype/before/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Strings are inserted as equivalent {{domxref("Text")}} nodes.
```js
before(param1)
before(param1, param2)
before(param1, param2, /* ... ,*/ paramN)
before(param1, param2, /* ,*/ paramN)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/documenttype/replacewith/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`DocumentType.replaceWith()`** method replaces the document type with a se
```js
replaceWith(node1)
replaceWith(node1, node2)
replaceWith(node1, node2, /* ... ,*/ nodeN)
replaceWith(node1, node2, /* ,*/ nodeN)
```

### Parameters
Expand Down
Loading