Skip to content

Commit

Permalink
Remove quotes around code spans 2 (#36025)
Browse files Browse the repository at this point in the history
* Remove quotes around code spans 2

* Update files/en-us/web/api/attribution_reporting_api/index.md
  • Loading branch information
Josh-Cena authored Sep 24, 2024
1 parent 54dbdfc commit dcbb1d9
Show file tree
Hide file tree
Showing 90 changed files with 166 additions and 166 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/abortsignal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ If you need to abort the operation on timeout then you can use the static {{domx
This returns an `AbortSignal` that will automatically timeout after a certain number of milliseconds.

The code snippet below shows how you would either succeed in downloading a file, or handle a timeout error after 5 seconds.
Note that when there is a timeout the `fetch()` promise rejects with a "`TimeoutError`" `DOMException`.
Note that when there is a timeout the `fetch()` promise rejects with a `TimeoutError` `DOMException`.
This allows code to differentiate between timeouts (for which user notification is probably required), and user aborts.

```js
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/angle_instanced_arrays/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The **`ANGLE_instanced_arrays`** extension is part of the [WebGL API](/en-US/doc
WebGL extensions are available using the {{domxref("WebGLRenderingContext.getExtension()")}} method. For more information, see also [Using Extensions](/en-US/docs/Web/API/WebGL_API/Using_Extensions) in the [WebGL tutorial](/en-US/docs/Web/API/WebGL_API/Tutorial).

> [!NOTE]
> This extension is only available to {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} contexts. In {{domxref("WebGL2RenderingContext", "WebGL2", "", 1)}}, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without the "`ANGLE`" suffix.
> This extension is only available to {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} contexts. In {{domxref("WebGL2RenderingContext", "WebGL2", "", 1)}}, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without the `ANGLE_` suffix.
>
> Despite the name "ANGLE", this extension works on any device if the hardware supports it and not just on Windows when using the ANGLE library. "ANGLE" just indicates that this extension has been written by the ANGLE library authors.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/animationeffect/gettiming/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ An object containing the following properties:

- `fill`

- : `"none"`, `"forwards"`, `"backwards"`, "`both`", or `"auto"`.
- : `"none"`, `"forwards"`, `"backwards"`, `"both"`, or `"auto"`.

Indicates whether the effect is reflected by its target(s) prior to playing
(`"backwards"`), retained after the effect has completed (`"forwards"`), `"both"`, or
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/beacon_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For more details about the motivation for and usage of this API, see the documen

This API defines a single method: {{domxref("navigator.sendBeacon()")}}.

The method takes two arguments, the URL and the data to send in the request. The data argument is optional and its type may be a string, an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}}, a {{domxref("ReadableStream")}}, a {{domxref("Blob")}}, a {{domxref("FormData")}} object, or a {{domxref("URLSearchParams")}} object. If the browser successfully queues the request for delivery, the method returns "`true`"; otherwise, it returns "`false`".
The method takes two arguments, the URL and the data to send in the request. The data argument is optional and its type may be a string, an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, a {{jsxref("DataView")}}, a {{domxref("ReadableStream")}}, a {{domxref("Blob")}}, a {{domxref("FormData")}} object, or a {{domxref("URLSearchParams")}} object. If the browser successfully queues the request for delivery, the method returns `true`; otherwise, it returns `false`.

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/bluetoothremotegattdescriptor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ which provides further information about a characteristic's value.
to.
- {{DOMxRef("BluetoothRemoteGATTDescriptor.uuid")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the UUID of the characteristic descriptor, for
example '`00002902-0000-1000-8000-00805f9b34fb`' for the Client
example `"00002902-0000-1000-8000-00805f9b34fb"` for the Client
Characteristic Configuration descriptor.
- {{DOMxRef("BluetoothRemoteGATTDescriptor.value")}} {{ReadOnlyInline}} {{Experimental_Inline}}
- : Returns the currently cached descriptor value. This value gets updated when the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ browser-compat: api.BluetoothRemoteGATTDescriptor.uuid
{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}

The **`BluetoothRemoteGATTDescriptor.uuid`** read-only property returns the {{Glossary("UUID")}} of the characteristic descriptor.
For example '`00002902-0000-1000-8000-00805f9b34fb`' for the Client Characteristic Configuration descriptor.
For example `"00002902-0000-1000-8000-00805f9b34fb"` for the Client Characteristic Configuration descriptor.

## Value

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/client/postmessage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ browser-compat: api.Client.postMessage
The **`postMessage()`** method of the
{{domxref("Client")}} interface allows a service worker to send a message to a client
(a {{domxref("Window")}}, {{domxref("Worker")}}, or {{domxref("SharedWorker")}}). The
message is received in the "`message`" event on
message is received in the `message` event on
{{domxref("ServiceWorkerContainer", "navigator.serviceWorker")}}.

## Syntax
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/clients/claim/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ browser-compat: api.Clients.claim
{{APIRef("Service Workers API")}}{{AvailableInWorkers("service")}}

The **`claim()`** method of the {{domxref("Clients")}} interface allows an active service worker to set itself as the {{domxref("ServiceWorkerContainer.controller", "controller")}} for all clients within its {{domxref("ServiceWorkerRegistration.scope", "scope")}}.
This triggers a "`controllerchange`" event on {{domxref("ServiceWorkerContainer","navigator.serviceWorker")}} in any clients that become controlled by this service worker.
This triggers a `controllerchange` event on {{domxref("ServiceWorkerContainer","navigator.serviceWorker")}} in any clients that become controlled by this service worker.

When a service worker is initially registered, pages won't use it until they next
load. The `claim()` method causes those pages to be controlled immediately.
Expand All @@ -32,7 +32,7 @@ A {{jsxref("Promise")}} that resolves to `undefined`.

## Examples

The following example uses `claim()` inside service worker's "`activate`" event listener so that clients loaded in the same scope do not need to be reloaded before their fetches will go through this service worker.
The following example uses `claim()` inside service worker's `activate` event listener so that clients loaded in the same scope do not need to be reloaded before their fetches will go through this service worker.

```js
self.addEventListener("activate", (event) => {
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/comment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ browser-compat: api.Comment

The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.

Comments are represented in HTML and XML as content between '`<!--`' and '`-->`'. In XML, like inside SVG or MathML markup, the character sequence '`--`' cannot be used within a comment.
Comments are represented in HTML and XML as content between `<!--` and `-->`. In XML, like inside SVG or MathML markup, the character sequence `--` cannot be used within a comment.

{{InheritanceDiagram}}

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/convolvernode/convolvernode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ new ConvolverNode(context, options)
- `disableNormalization`
- : A boolean value controlling
whether the impulse response from the buffer will be scaled by an equal-power
normalization, or not. The default is '`false`'.
normalization, or not. The default is `false`.
- `channelCount`
- : Represents an integer used to determine how many channels are used
when [up-mixing and down-mixing](/en-US/docs/Web/API/Web_Audio_API/Basic_concepts_behind_Web_Audio_API#up-mixing_and_down-mixing) connections to any inputs to the node.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/credentialscontainer/create/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ create(options)
- : An object that contains options for the requested new `Credentials` object. It can contain the following properties:

- `signal` {{optional_inline}}
- : An {{domxref("AbortSignal")}} object instance that allows an ongoing `create()` operation to be aborted. An aborted operation may complete normally (generally if the abort was received after the operation finished) or reject with an "`AbortError`" {{domxref("DOMException")}}.
- : An {{domxref("AbortSignal")}} object instance that allows an ongoing `create()` operation to be aborted. An aborted operation may complete normally (generally if the abort was received after the operation finished) or reject with an `AbortError` {{domxref("DOMException")}}.

Each of the following properties represents a _credential type_ being created. One and only one of them must be specified:

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/credentialscontainer/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ get(options)
- `signal` {{optional_inline}}

- : An {{domxref("AbortSignal")}} object instance that allows an ongoing `get()` operation to be aborted. An aborted operation may complete normally (generally if the abort was received after the operation finished) or reject with an "`AbortError`" {{domxref("DOMException")}}.
- : An {{domxref("AbortSignal")}} object instance that allows an ongoing `get()` operation to be aborted. An aborted operation may complete normally (generally if the abort was received after the operation finished) or reject with an `AbortError` {{domxref("DOMException")}}.

- `password` {{optional_inline}}
- : This option asks the browser to retrieve a stored [password](/en-US/docs/Web/API/Credential_Management_API/Credential_types#passwords) as a {{domxref("PasswordCredential")}} object. It is a boolean value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To modify styles to a document using CSS syntax, one can insert rules or insert

## Modify an element's style

The element {{domxref("HTMLElement.style", "style")}} property (see also the section "DOM Style Object" below) can also be used to get and set the styles on an element. However, this property only returns style attributes that have been set _in-line_ (e.g., `<td style="background-color: lightblue">` returns the string "`background-color:lightblue`", or directly for that element using `element.style.propertyName`, even though there may be other styles on the element from a stylesheet).
The element {{domxref("HTMLElement.style", "style")}} property (see also the section "DOM Style Object" below) can also be used to get and set the styles on an element. However, this property only returns style attributes that have been set _in-line_ (e.g., accessing `element.style.color` on an element defined as `<td style="background-color: lightblue">` returns the string `""`, even though the element may have a `color` declared via a stylesheet).

Also, when you set this property on an element, you override any styles that have been set elsewhere for that element's particular property you are setting. Setting the `border` property, for example, will override settings made elsewhere for that element's `border` property in the head section, or external style sheets. However, this will not affect any other property declarations for that element's styles, such as padding or margin or font, for example.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssmathvalue/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ console.log(styleMap.get("width").values[1].value); // -20

{{EmbedLiveSample("Examples", 120, 300)}}

The `CSSMathValue.operator` returns '`sum`' because `styleMap.get('width').values[1].value );` is `-20`: adding a negative number.
The `CSSMathValue.operator` returns `"sum"` because `styleMap.get("width").values[1].value );` is `-20`: adding a negative number.

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssrule/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The **`CSSRule`** interface represents a single CSS rule. There are several type
The `CSSRule` interface specifies the properties common to all rules, while properties unique to specific rule types are specified in the more specialized interfaces for those rules' respective types.

- {{domxref("CSSRule.cssText")}}
- : Represents the textual representation of the rule, e.g. "`h1,h2 { font-size: 16pt }`" or "`@import 'url'`". To access or modify parts of the rule (e.g. the value of "font-size" in the example) use the properties on the specialized interface for the rule's type (see above).
- : Represents the textual representation of the rule, e.g. `"h1,h2 { font-size: 16pt }"` or `"@import 'url'"`. To access or modify parts of the rule (e.g. the value of "font-size" in the example) use the properties on the specialized interface for the rule's type (see above).
- {{domxref("CSSRule.parentRule")}} {{ReadOnlyInline}}
- : Returns the containing rule, otherwise `null`. E.g. if this rule is a style rule inside an {{cssxref("@media")}} block, the parent rule would be that {{domxref("CSSMediaRule")}}.
- {{domxref("CSSRule.parentStyleSheet")}} {{ReadOnlyInline}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/bgcolor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ current document.

## Value

A string representing the color as a word (e.g., "red") or hexadecimal value (e.g., "`#ff0000`").
A string representing the color as a word (e.g., `"red"`) or hexadecimal value (e.g., `"#ff0000"`).

When set to the `null` value, that `null` value is converted to the empty string (`""`), so `document.bgColor = null` is equivalent to `document.bgColor = ""`.

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/document/compatmode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Standards mode.

## Value

An enumerated value that can be:
A string that is one of the following:

- "`BackCompat`" if the document is in quirks mode.
- "`CSS1Compat`" if the document is in no-quirks (also known as
- `"BackCompat"` if the document is in quirks mode.
- `"CSS1Compat"` if the document is in no-quirks (also known as
"standards") mode or limited-quirks (also known as "almost standards") mode.

> [!NOTE]
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/createcdatasection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ console.log(new XMLSerializer().serializeToString(docu));
CDATA sections); attempting it on an HTML document will throw
`NOT_SUPPORTED_ERR`.
- Will throw a `NS_ERROR_DOM_INVALID_CHARACTER_ERR` exception if one tries
to submit the closing CDATA sequence ("`]]>`") as part of the data, so
to submit the closing CDATA sequence (`]]>`) as part of the data, so
unescaped user-provided data cannot be safely used without this method getting this
exception ({{domxref("document.createTextNode","createTextNode()")}} can often be used
in its place).
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 @@ -38,7 +38,7 @@ The new {{domxref("Element")}}.

### Basic example

This creates a new `<div>` and inserts it before the element with the ID "`div1`".
This creates a new `<div>` and inserts it before the element with the ID `div1`.

#### HTML

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/api/document/domain/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A string.

For code running at the URL `https://developer.mozilla.org/en-US/docs/Web`,
this example would set `currentDomain` to the string
"`developer.mozilla.org`".
`"developer.mozilla.org"`.

```js
const currentDomain = document.domain;
Expand All @@ -53,7 +53,7 @@ const currentHostname = location.hostname;
```

For the URL `https://developer.mozilla.org/en-US/docs/Web`,
`currentHostname` is also the string "`developer.mozilla.org`".
`currentHostname` is also the string `"developer.mozilla.org"`.
Other alternatives that provide slightly different information are
{{domxref("Location.host")}}, which includes the port, and
{{domxref("Window.origin")}}, which provides the full origin.
Expand Down Expand Up @@ -115,7 +115,7 @@ blanket exposure of all data caused by `document.domain`.

#### Failures

The setter will throw a "`SecurityError`" {{domxref("DOMException")}} in
The setter will throw a `SecurityError` {{domxref("DOMException")}} in
several cases:

- The {{httpheader('Permissions-Policy/document-domain','document-domain')}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/fgcolor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ the current document.

## Value

A string representing the color as a word (e.g., "red") or hexadecimal value (e.g., "`#ff0000`").
A string representing the color as a word (e.g., `"red"`) or hexadecimal value (e.g., `"#ff0000"`).

## Examples

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 @@ -32,9 +32,9 @@ and `false` if the command isn't.

## Notes

- For '`cut`' and '`copy`' commands the method only returns true
- For `"cut"` and `"copy"` commands the method only returns true
when called from a user-initiated thread.
- The `'paste'` command return `false` not only if the feature
- The `"paste"` command return `false` not only if the feature
is unavailable, but also if the script calling it has insufficient privileges to
perform the action.

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 @@ -54,7 +54,7 @@ If you need a list of all elements matching the specified selectors, you should
### Finding the first element matching a class

In this example, the first element in the document with the class
"`myclass`" is returned:
`myclass` is returned:

```js
const el = document.querySelector(".myclass");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ that matches the specified set of [CSS selectors](/en-US/docs/Web/CSS/CSS_select
### Basic example

In this basic example, the first element in the {{domxref("DocumentFragment")}} with
the class "`myclass`" is returned:
the class `myclass` is returned:

```js
const el = documentfragment.querySelector(".myclass");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ each element that matches at least one of the specified selectors or an empty
## Examples

This example returns a list of all `div` elements within the
`DocumentFragment` with a class of either "`note`" or
"`alert`":
`DocumentFragment` with a class of either `note` or
`alert`:

```js
const matches = documentfrag.querySelectorAll("div.note, div.alert");
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/ariaautocomplete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A string with one of the following values:

## Examples

In this example, the `aria-autocomplete` attribute on the element with an ID of `animal` is set to "`inline`". Using `ariaAutoComplete` we update the value to "`list`", which is the expected value for a combobox that invokes a `listbox` popup.
In this example, the `aria-autocomplete` attribute on the element with an ID of `animal` is set to `"inline"`. Using `ariaAutoComplete` we update the value to `"list"`, which is the expected value for a combobox that invokes a `listbox` popup.

```html
<div class="animals-combobox">
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/ariahaspopup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ A string with one of the following values:
## Examples

In this example, the `aria-haspopup` attribute on the element with an ID of `animal` is set to "`true`". Using `ariaHasPopup`, we update the value to "`listbox`", which is the expected value for a combobox that invokes a `listbox` popup.
In this example, the `aria-haspopup` attribute on the element with an ID of `animal` is set to `"true"`. Using `ariaHasPopup`, we update the value to `"listbox"`, which is the expected value for a combobox that invokes a `listbox` popup.

```html
<div class="animals-combobox">
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/ariaorientation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A string with one of the following values:

## Examples

In this example the [`aria-orientation`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-orientation) attribute on the element with an ID of `handle_zoomSlider` is set to "`vertical`". Using `ariaOrientation` we update the value to "`horizontal`".
In this example the [`aria-orientation`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-orientation) attribute on the element with an ID of `handle_zoomSlider` is set to `"vertical"`. Using `ariaOrientation` we update the value to `"horizontal"`.

```html
<div
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/element/computedstylemap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ In other browsers you'll just see a link.

{{EmbedLiveSample("Examples", 300, 300)}}

Did you realize how many default CSS properties a link had? Update the '`a`'
to the '`p`', and you'll notice a difference in the `margin-top`
Did you realize how many default CSS properties a link had? Update the `document.querySelector("a")`
to `document.querySelector("p")`, and you'll notice a difference in the `margin-top`
and `margin-bottom` default computed values.

## Specifications
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/element/queryselectorall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ const refs = [
### Obtaining a list of matches

To obtain a {{domxref("NodeList")}} of all of the {{HTMLElement("p")}} elements
contained within the element `"myBox"`:
contained within the element `myBox`:

```js
const matches = myBox.querySelectorAll("p");
```

This example returns a list of all {{HTMLElement("div")}} elements within
`"myBox"` with a class of either "`note`" or "`alert`":
`myBox` with a class of either `note` or `alert`:

```js
const matches = myBox.querySelectorAll("div.note, div.alert");
Expand Down
Loading

0 comments on commit dcbb1d9

Please sign in to comment.