Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAPI: Update Method pages to modern structure (part 9) #15062

Merged
merged 4 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 4 additions & 4 deletions files/en-us/web/api/console/log/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ or more JavaScript objects.
## Syntax

```js
log(obj1);
log(obj1, /* ..., */ objN);
log(msg);
log(msg, subst1, /* ..., */ substN]);
log(obj1)
log(obj1, /* ..., */ objN)
log(msg)
log(msg, subst1, /* ..., */ substN])
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/profile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To stop recording call {{domxref("console.profileEnd()")}}.
## Syntax

```js
profile(profileName);
profile(profileName)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/profileend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ only that profile if you have multiple profiles being recorded.
## Syntax

```js
profileEnd(profileName);
profileEnd(profileName)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/console/table/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ You can sort the table by a particular column by clicking on that column's label
## Syntax

```js
table(data);
table(data, columns);
table(data)
table(data, columns)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/time/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ See [Timers](/en-US/docs/Web/API/console#timers) in the
## Syntax

```js
time(label);
time(label)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/timeend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ details and examples.
## Syntax

```js
timeEnd(label);
timeEnd(label)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/timelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ details and examples.
## Syntax

```js
timeLog(label);
timeLog(label)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/timestamp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ be shown alongside the marker.
## Syntax

```js
timeStamp(label);
timeStamp(label)
```

### Parameters
Expand Down
5 changes: 3 additions & 2 deletions files/en-us/web/api/console/trace/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ See [Stack traces](/en-US/docs/Web/API/console#stack_traces) in the
## Syntax

```js
trace( [...any, ...data ]);
trace()
trace(objct1, /* ..., */ objectN)
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
```

### Parameters

- `...any, ...data` {{optional_inline}}
- `objects` {{optional_inline}}
- : Zero or more objects to be output to console along with the trace. These are
assembled and formatted the same way they would be if passed to the
{{domxref("console.log()")}} method.
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/console/warn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ console.
## Syntax

```js
warn(obj1);
warn(obj1, /* ..., */ objN);
warn(msg);
warn(msg, subst1, /* ..., */ substN]);
warn(obj1)
warn(obj1, /* ..., */ objN)
warn(msg)
warn(msg, subst1, /* ..., */ substN])
```

### Parameters
Expand Down
10 changes: 5 additions & 5 deletions files/en-us/web/api/cookiestore/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The **`delete()`** method of the {{domxref("CookieStore")}} interface deletes a
## Syntax

```js
delete(name);
delete(options);
delete(name)
delete(options)
```

### Parameters
Expand All @@ -31,11 +31,11 @@ This method requires one of the following:
- : An object containing:

- `name`
- : A {{domxref("USVString")}} with the name of a cookie.
- : A string with the name of a cookie.
- `url`{{Optional_Inline}}
- : A {{domxref("USVString")}} with the URL of a cookie.
- : A string with the URL of a cookie.
- `path`{{Optional_Inline}}
- : A {{domxref("USVString")}} containing a path.
- : A string containing a path.

> **Note:** The `url` option enables the modification of a cookie scoped under a particular URL. Service workers can obtain cookies that would be sent to any URL under their scope. From a document you may only obtain the cookies at the current URL, so the only valid URL in a document context is the document's URL.

Expand Down
16 changes: 8 additions & 8 deletions files/en-us/web/api/cookiestore/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The **`get()`** method of the {{domxref("CookieStore")}} interface returns a sin
## Syntax

```js
get(name);
get(options);
get(name)
get(options)
```

### Parameters
Expand All @@ -31,9 +31,9 @@ This method requires one of the following:
- : An object containing:

- `name`
- : A {{domxref("USVString")}} with the name of a cookie.
- : A string with the name of a cookie.
- `url`
- : A {{domxref("USVString")}} with the URL of a cookie.
- : A string with the URL of a cookie.

> **Note:** The `url` option enables the modification of a cookie scoped under a particular URL. Service workers can obtain cookies that would be sent to any URL under their scope. From a document you may only obtain the cookies at the current URL, so the only valid URL in a document context is the document's URL.

Expand All @@ -42,13 +42,13 @@ This method requires one of the following:
A {{jsxref("Promise")}} that resolves with an object containing the first cookie matching the submitted name or options. This object contains the following properties:

- `name`
- : A {{domxref("USVString")}} containing the name of the cookie.
- : A string containing the name of the cookie.
- `value`
- : A {{domxref("USVString")}} containing the value of the cookie.
- : A string containing the value of the cookie.
- `domain`
- : A {{domxref("USVString")}} containing the domain of the cookie.
- : A string containing the domain of the cookie.
- `path`
- : A {{domxref("USVString")}} containing the path of the cookie.
- : A string containing the path of the cookie.
- `expires`
- : A {{domxref("DOMTimeStamp")}} containing the expiration date of the cookie.
- `secure`
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/cookiestore/getall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The **`getAll()`** method of the {{domxref("CookieStore")}} interface returns a
## Syntax

```js
getAll(name);
getAll(options);
getAll(name)
getAll(options)
```

### Parameters
Expand All @@ -29,9 +29,9 @@ getAll(options);
- : An object containing:

- `name`
- : A {{domxref("USVString")}} with the name of a cookie.
- : A string with the name of a cookie.
- `url`
- : A {{domxref("USVString")}} with the URL of a cookie.
- : A string with the URL of a cookie.

> **Note:** The `url` option enables the modification of a cookie scoped under a particular URL. Service workers can obtain cookies that would be sent to any URL under their scope. From a document you may only obtain the cookies at the current URL, so the only valid URL in a document context is the document's URL.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/cookiestore/set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The **`set()`** method of the {{domxref("CookieStore")}} interface sets a cookie
## Syntax

```js
set(name,value);
set(options);
set(name,value)
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
set(options)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The **`getSubscriptions()`** method of the {{domxref("CookieStoreManager")}} int
## Syntax

```js
getSubscriptions();
getSubscriptions()
```

### Return value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The **`subscribe()`** method of the {{domxref("CookieStoreManager")}} interface
## Syntax

```js
subscribe(subscriptions);
subscribe(subscriptions)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The **`unsubscribe()`** method of the {{domxref("CookieStoreManager")}} interfac
## Syntax

```js
unsubscribe(subscriptions);
unsubscribe(subscriptions)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/countqueuingstrategy/size/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ total queue size is a count of the number of chunks in the queue.
## Syntax

```js
size();
size()
```

### Parameters
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/api/createimagebitmap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ different image sources, and returns a {{jsxref("Promise")}} which resolves to a
## Syntax

```js
createImageBitmap(image);
createImageBitmap(image, options);
createImageBitmap(image, sx, sy, sw, sh);
createImageBitmap(image, sx, sy, sw, sh, options);
createImageBitmap(image)
createImageBitmap(image, options)
createImageBitmap(image, sx, sy, sw, sh)
createImageBitmap(image, sx, sy, sw, sh, options)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/credentialscontainer/create/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ resolves with a new {{domxref("Credential")}} instance based on the provided opt
## Syntax

```js
create();
create(options);
create()
create(options)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/credentialscontainer/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ example: if options.password exists, then the
## Syntax

```js
get();
get(options);
get()
get(options)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ compatibility](/en-US/docs/Web/API/CredentialsContainer#browser_compatibility) s
## Syntax

```js
preventSilentAccess();
preventSilentAccess()
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/credentialscontainer/store/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The **`store()`** method of the
## Syntax

```js
store(Credential);
store(Credential)
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/crypto/getrandomvalues/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Implementations are required to use a seed with enough entropy, like a system-le
## Syntax

```js
getRandomValues(typedArray);
getRandomValues(typedArray)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/crypto/randomuuid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`randomUUID()`** method of the {{domxref("Crypto")}} interface is used to
## Syntax

```js
randomUUID();
randomUUID()
```

### Return value
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/css/escape/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use as part of a CSS selector.
## Syntax

```js
escape(str);
escape(str)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/css/supports/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ indicating if the browser supports a given CSS feature, or not.
## Syntax

```js
supports(propertyName, value);
supports(supportCondition);
supports(propertyName, value)
supports(supportCondition)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssgroupingrule/deleterule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rules.
## Syntax

```js
deleteRule(index);
deleteRule(index)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/cssgroupingrule/insertrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ The **`insertRule()`** method of the
## Syntax

```js
insertRule(rule);
insertRule(rule, index);
insertRule(rule)
insertRule(rule, index)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csskeyframesrule/appendrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`appendRule()`** method of the {{domxref("CSSKeyframeRule")}} interface ap
## Syntax

```js
appendRule(rule);
appendRule(rule)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csskeyframesrule/deleterule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`deleteRule()`** method of the {{domxref("CSSKeyframeRule")}} interface de
## Syntax

```js
deleteRule(select);
deleteRule(select)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csskeyframesrule/findrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`findRule()`** method of the {{domxref("CSSKeyframeRule")}} interface find
## Syntax

```js
findRule(select);
findRule(select)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/cssnumericvalue/add/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ The **`add()`** method of the
## Syntax

```js
add(double);
add(CSSNumericValue);
add(double)
add(CSSNumericValue)
```

### Parameters
Expand Down
Loading