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

Tag syntax code blocks with js-nolint, part 6 #20619

Merged
merged 3 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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 @@ -21,7 +21,7 @@ The **`Document.createTouchList()`** method creates and returns a new {{DOMxRef(

## Syntax

```js
```js-nolint
createTouchList(touch1)
createTouchList(touch1, touch2)
createTouchList(touch1, touch2, /* … ,*/ touchN)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/createtreewalker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ newly created {{domxref("TreeWalker")}} object.

## Syntax

```js
```js-nolint
createTreeWalker(root)
createTreeWalker(root, whatToShow)
createTreeWalker(root, whatToShow, filter)
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ an entry point into the page's content.

## Syntax

```js
```js-nolint
new Document()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/elementfrompoint/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If you need to find the specific position inside the element, use

## Syntax

```js
```js-nolint
elementFromPoint(x, y)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/elementsfrompoint/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It operates in a similar way to the {{domxref("Document.elementFromPoint",

## Syntax

```js
```js-nolint
elementsFromPoint(x, y)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enabled).

## Syntax

```js
```js-nolint
enableStyleSheetsForSet(name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/evaluate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ XPath expressions can be evaluated on both HTML and XML documents.

## Syntax

```js
```js-nolint
evaluate(xpathExpression, contextNode, namespaceResolver, resultType, result)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/execcommand/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The [Clipboard API](/en-US/docs/Web/API/Clipboard_API) can be used instead of `e

## Syntax

```js
```js-nolint
execCommand(aCommandName, aShowDefaultUI, aValueArgument)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/exitfullscreen/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ reverses the effects of a previous call to {{domxref("Element.requestFullscreen(

## Syntax

```js
```js-nolint
exitFullscreen()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ effects of a previous call to {{domxref("HTMLVideoElement.requestPictureInPictur

## Syntax

```js
```js-nolint
exitPictureInPicture()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/exitpointerlock/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To track the success or failure of the request, it is necessary to listen for th

## Syntax

```js
```js-nolint
exitPointerLock()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/getanimations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ target elements are descendants of the document. This array includes [CSS Animat

## Syntax

```js
```js-nolint
getAnimations()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/getelementbyid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you need to get access to an element which doesn't have an ID, you can use {{

## Syntax

```js
```js-nolint
getElementById(id)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ descendants of the specified root element with the given class name(s).

## Syntax

```js
```js-nolint
getElementsByClassName(names)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/getelementsbyname/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ elements with a given `name` attribute in the document.

## Syntax

```js
```js-nolint
getElementsByName(name)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ without having to call `document.getElementsByTagName()` again.

## Syntax

```js
```js-nolint
getElementsByTagName(name)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The complete document is searched, including the root node.

## Syntax

```js
```js-nolint
getElementsByTagNameNS(namespace, name)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/getselection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the caret.

## Syntax

```js
```js-nolint
getSelection()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/hasfocus/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ active element in a document has focus.

## Syntax

```js
```js-nolint
hasFocus()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/hasstorageaccess/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This method is part of the [Storage Access API](/en-US/docs/Web/API/Storage_Acce

## Syntax

```js
```js-nolint
hasStorageAccess()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/hidden/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ value indicating if the page is considered hidden or not.

## Syntax

```js
```js-nolint
document.hidden
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/importnode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ original document. The imported node is a clone of the original.

## Syntax

```js
```js-nolint
importNode(externalNode)
importNode(externalNode, deep)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/mozsetimageelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ element ID.

## Syntax

```js
```js-nolint
mozSetImageElement(imageElementId, imageElement)
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/document/mscapslockwarningoff/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Starting with Internet Explorer 10, input type=password fields will automaticall

## Syntax

```js
document.msCapsLockWarningOff = true;
```js-nolint
document.msCapsLockWarningOff = true
```

## Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This proprietary method is specific to Internet Explorer and Microsoft Edge.

## Syntax

```js
```js-nolint
object.addEventListener("msthumbnailclick", handler, useCapture)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/open/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This does come with some side effects. For example:

## Syntax

```js
```js-nolint
open()
```

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 @@ -23,7 +23,7 @@ This method prepends a child to a `Document`. To prepend to an arbitrary element

## Syntax

```js
```js-nolint
prepend(param1)
prepend(param1, param2)
prepend(param1, param2, /* … ,*/ paramN)
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/document/querycommandenabled/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ or not the specified editor command is enabled by the browser.

## Syntax

```js
isEnabled = document.queryCommandEnabled(command);
```js-nolint
document.queryCommandEnabled(command)
```

### Parameters
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/querycommandstate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`queryCommandState()`** method will tell you if the current selection has

## Syntax

```js
```js-nolint
queryCommandState(command)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ whether or not the specified editor command is supported by the browser.

## Syntax

```js
```js-nolint
queryCommandSupported(command)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/queryselector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ selector, or group of selectors. If no matches are found, `null` is returned.

## Syntax

```js
```js-nolint
querySelector(selectors)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/queryselectorall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ document's elements that match the specified group of selectors.

## Syntax

```js
```js-nolint
querySelectorAll(selectors)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/registerelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ browser and returns a constructor for the new element.

## Syntax

```js
```js-nolint
registerElement(tagName)
registerElement(tagName, options)
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/releasecapture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Enabling mouse capture on an element is done by calling {{domxref("element.setCa

## Syntax

```js
```js-nolint
releaseCapture()
```

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 @@ -20,7 +20,7 @@ existing children of a `Document` with a specified new set of children.

## Syntax

```js
```js-nolint
replaceChildren(param1)
replaceChildren(param1, param2)
replaceChildren(param1, param2, /* … ,*/ paramN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ To make testing easier, we have added two preferences in `about:config` that con

## Syntax

```js
```js-nolint
requestStorageAccess()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/visibilitystate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ minimized.

## Syntax

```js
```js-nolint
document.visibilityState
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/write/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The **`document.write()`** method writes a string of text to a document stream o

## Syntax

```js
```js-nolint
write(markup)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/writeln/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Writes a string of text followed by a newline character to a document.

## Syntax

```js
```js-nolint
writeln(line)
```

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 @@ -23,7 +23,7 @@ This method appends a child to a `DocumentFragment`. To append to an arbitrary e

## Syntax

```js
```js-nolint
append(param1)
append(param1, param2)
append(param1, param2, /* … ,*/ paramN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`DocumentFragment()`** constructor returns a new, empty

## Syntax

```js
```js-nolint
new DocumentFragment()
```

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 @@ -23,7 +23,7 @@ This method prepends a child to a `DocumentFragment`. To prepend to an arbitrary

## Syntax

```js
```js-nolint
prepend(param1)
prepend(param1, param2)
prepend(param1, param2, /* … ,*/ paramN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ a `SYNTAX_ERR` value is raised.

## Syntax

```js
```js-nolint
querySelector(selectors)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ a `SYNTAX_ERR` value is raised.

## Syntax

```js
```js-nolint
querySelectorAll(selectors)
```

Expand Down
Loading