Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 9 (#20622)
Browse files Browse the repository at this point in the history
* Tag syntax code blocks with js-nolint, part 9

Adding to #19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017

* Update files/en-us/web/api/ndefrecord/torecords/index.md

* Update files/en-us/web/api/nodelist/entries/index.md

* Update files/en-us/web/api/nodelist/foreach/index.md

* Update files/en-us/web/api/nodelist/keys/index.md

* Update files/en-us/web/api/nodelist/values/index.md

* Update files/en-us/web/api/presentationrequest/start/index.md

* Update files/en-us/web/api/relativeorientationsensor/relativeorientationsensor/index.md

Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
  • Loading branch information
OnkarRuikar and teoli2003 authored Sep 13, 2022
1 parent b7556b7 commit 2b8f5d9
Show file tree
Hide file tree
Showing 200 changed files with 231 additions and 233 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/ndefrecord/recordtype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ property of the {{DOMxRef("NDEFRecord")}} interface returns the record type of t

## Syntax

```js
```js-nolint
NDEFRecord.recordType
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/ndefrecord/torecords/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ as smart poster and external type records.

## Syntax

```js
NDEFRecord.toRecords()
```js-nolint
toRecords()
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/node/appendchild/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If the given child is a {{domxref("DocumentFragment")}}, the entire contents of
## Syntax

```js
```js-nolint
appendChild(aChild)
```

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/node/clonenode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ To clone a node to insert into a _different_ document, use

## Syntax

```js
cloneNode();
cloneNode(deep);
```js-nolint
cloneNode()
cloneNode(deep)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/comparedocumentposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ reports the position of its argument node relative to the node on which it is ca

## Syntax

```js
compareDocumentPosition(otherNode);
```js-nolint
compareDocumentPosition(otherNode)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/contains/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ one of the children's direct children, and so on.
## Syntax

```js
contains(otherNode);
```js-nolint
contains(otherNode)
```

### Parameters
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/node/getrootnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ which optionally includes the shadow root if it is available.

## Syntax

```js
getRootNode();
getRootNode(options);
```js-nolint
getRootNode()
getRootNode(options)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/haschildnodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ whether the given {{domxref("Node")}} has [child nodes](/en-US/docs/Web/API/Node

## Syntax

```js
hasChildNodes();
```js-nolint
hasChildNodes()
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/insertbefore/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ node.

## Syntax

```js
insertBefore(newNode, referenceNode);
```js-nolint
insertBefore(newNode, referenceNode)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/isdefaultnamespace/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ and `false` if not.
## Syntax

```js
isDefaultNamespace(namespaceURI);
```js-nolint
isDefaultNamespace(namespaceURI)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/isequalnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ the types of the nodes.

## Syntax

```js
isEqualNode(otherNode);
```js-nolint
isEqualNode(otherNode)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/issamenode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ That is, it tests whether two nodes are the same
## Syntax

```js
isSameNode(otherNode);
```js-nolint
isSameNode(otherNode)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/issupported/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ specific feature and this feature is supported by the specific node.

## Syntax

```js
isSupported(feature, version);
```js-nolint
isSupported(feature, version)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/lookupnamespaceuri/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ takes a prefix as parameter and returns the namespace URI associated with it on

## Syntax

```js
lookupNamespaceURI(prefix);
```js-nolint
lookupNamespaceURI(prefix)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/lookupprefix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ When multiple prefixes are possible, the first prefix is returned.

## Syntax

```js
lookupPrefix(namespace);
```js-nolint
lookupPrefix(namespace)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/normalize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ In a normalized sub-tree, no text nodes in the sub-tree are empty and there are

## Syntax

```js
normalize();
```js-nolint
normalize()
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/removechild/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Unlike {{domxref("Node.cloneNode()")}} the return value preserves the {{domxref(

## Syntax

```js
removeChild(child);
```js-nolint
removeChild(child)
```

### Parameters
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/node/replacechild/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ replaces a child node within the given (parent) node.

## Syntax

```js
replaceChild(newChild, oldChild);
```js-nolint
replaceChild(newChild, oldChild)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/nodeiterator/detach/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ iterates, releasing any resources used by the set and setting the iterator's sta

## Syntax

```js
```js-nolint
detach()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/nodeiterator/nextnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ throw.

## Syntax

```js
```js-nolint
nextNode()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/nodeiterator/previousnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ throw.

## Syntax

```js
```js-nolint
previousNode()
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/nodelist/entries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ contained in this object. The values are {{domxref("Node")}} objects.

## Syntax

```js
list.entries();
```js-nolint
entries()
```

### Return value
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/nodelist/foreach/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ insertion order.

## Syntax

```js
someNodeList.forEach(callback);
someNodeList.forEach(callback, thisArg);
```js-nolint
forEach(callback)
forEach(callback, thisArg)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/nodelist/item/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ argument is provided.

## Syntax

```js
```js-nolint
item(index)
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/nodelist/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ in this object. The keys are `unsigned integer`.

## Syntax

```js
nodeList.keys();
```js-nolint
keys()
```

### Return value
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/nodelist/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ in this object. The values are {{domxref("Node")}} objects.

## Syntax

```js
nodeList.values();
```js-nolint
values()
```

### Return value
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ close/remove a previously displayed notification.
## Syntax

```js
```js-nolint
close()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/notification/notification/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`Notification()`** constructor creates a new

## Syntax

```js
```js-nolint
new Notification(title)
new Notification(title, options)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`requestPermission()`** method of the {{domxref("Notification")}} interfac

## Syntax

```js
```js-nolint
// The latest spec has updated this method to a promise-based syntax that works like this:
requestPermission()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`NotificationEvent()`** constructor creates a new {{domxref("NotificationE

## Syntax

```js
```js-nolint
new NotificationEvent(type, options)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ passed {{domxref("WebGLVertexArrayObject")}} object to the buffer.

## Syntax

```js
```js-nolint
bindVertexArrayOES(arrayObject)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data.

## Syntax

```js
```js-nolint
createVertexArrayOES()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ of the [WebGL API](/en-US/docs/Web/API/WebGL_API) deletes a given

## Syntax

```js
```js-nolint
deleteVertexArrayOES(arrayObject)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the passed object is a {{domxref("WebGLVertexArrayObject")}} object.

## Syntax

```js
```js-nolint
isVertexArrayOES(arrayObject)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The **`OfflineAudioCompletionEvent()`** constructor of the [Web Audio API](/en-U
## Syntax

```js
```js-nolint
new OfflineAudioCompletionEvent(type, options)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ audio to an {{domxref("AudioBuffer")}} rather than to an audio output device.

## Syntax

```js
```js-nolint
new OfflineAudioContext(options)
new OfflineAudioContext(numberOfChannels, length, sampleRate)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/offlineaudiocontext/resume/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ context that has been suspended. The promise resolves immediately because the

## Syntax

```js
```js-nolint
resume()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ eventually be removed, but currently both mechanisms are provided for legacy rea

## Syntax

```js
```js-nolint
startRendering()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/offlineaudiocontext/suspend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ precise suspension.

## Syntax

```js
```js-nolint
suspend(suspendTime)
```

Expand Down
Loading

0 comments on commit 2b8f5d9

Please sign in to comment.