Skip to content

Commit

Permalink
fix ignored typos due to 'allowCompoundWords:true' setting
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Sep 23, 2024
1 parent b07efa1 commit e07a87f
Show file tree
Hide file tree
Showing 62 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion files/en-us/learn/forms/user_input_methods/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ When screen orientation matters for your form, you can read the screen orientati
### Fullscreen

If you need to present your form in fullscreen mode, such as when your form is displayed on a museum kiosk, toll booth, or really any publically displayed user interface, it is possible to do so by calling {{domxref("Element.requestFullscreen()")}} on that element:
If you need to present your form in fullscreen mode, such as when your form is displayed on a museum kiosk, toll booth, or really any publicly displayed user interface, it is possible to do so by calling {{domxref("Element.requestFullscreen()")}} on that element:

```js
const elem = document.getElementById("myForm");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ While routing is traditionally handled by a server and not an application on the
[React Router](https://reactrouter.com/) is the most popular and most robust client-side routing library for React. It allows developers to define the routes of their application, and associate components with those routes . It also provides a number of useful hooks and components for managing the browser's location and history.

> [!NOTE]
> Client-side routing can make your application feel fast, but it poses a number of accessibility problems, especially for people who rely on assistive techology. You can read more about this in Marcy Sutton's article, ["The Implications of Client-Side Routing"](https://testingaccessibility.com/implications-of-client-side-routing).
> Client-side routing can make your application feel fast, but it poses a number of accessibility problems, especially for people who rely on assistive technology. You can read more about this in Marcy Sutton's article, ["The Implications of Client-Side Routing"](https://testingaccessibility.com/implications-of-client-side-routing).
{{PreviousMenuNext("Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility","Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Ember_getting_started", "Learn/Tools_and_testing/Client-side_JavaScript_frameworks")}}
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ We'll step through the options in the initialization steps below.
To explore various features of Vue, we will be building up a sample todo list app. We'll begin by using `create-vue` to build a new scaffold for our app.
In terminal, `cd` to where you'd like to create your sample app, then run `npm create vue@latest` (or `yarn create vue@latest` if you prefer Yarn).

The interactive tool let's you choose some options and you can procees by pressing <kbd>Enter</kbd>.
The interactive tool let's you choose some options and you can proceed by pressing <kbd>Enter</kbd>.
For this project, we'll use the following configuration:

```plain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ ESLint is installed via npm, so as per discussions in Chapter 2, you have the ch
npm install --save-dev eslint@8 @eslint/js globals
```

> **Note:** `esling@8` installs the version 8 of ESLint, while the latest is v9. This is because `eslint-plugin-react`, which we will use later, [does not support v9 yet](https://github.com/jsx-eslint/eslint-plugin-react/issues/3699).
> **Note:** `eslint@8` installs the version 8 of ESLint, while the latest is v9. This is because `eslint-plugin-react`, which we will use later, [does not support v9 yet](https://github.com/jsx-eslint/eslint-plugin-react/issues/3699).
The `@eslint/js` package provides predefined ESLint configuration, while the `globals` package provides a list of known global names in each environment. We will use them later in the configuration. Out of the box, ESLint is going to complain that it can't find the configuration file if you run it with `npx eslint`:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ A few rules to remember:

- Only apply `aria-brailleroledescription` to elements with a valid ARIA role or elements with implicit role semantics.
- The `aria-brailleroledescription`, if present, must have a non-empty, none null value that is different from the `aria-roledescription` value, which, in turn, is different from the ARIA explicit or role or implicit semantic role.
- Avoid using Unicode Braille Patterns. If they must be used, ensure the `aria-brailleroledescription` value contains content other than unicode braille patterns, whitespace, and braille battern dots-0.
- Avoid using Unicode Braille Patterns. If they must be used, ensure the `aria-brailleroledescription` value contains content other than unicode braille patterns, whitespace, and braille pattern dots-0.
- Ensure the value is always localized to the document's language.

> [!WARNING]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ A number representing the current time in milliseconds, or `null`.

## Reduced time precision

To offer protection against timing attacks and [fingerprinting](/en-US/docs/Glossary/Fingerprinting), the precision of `platbackEvent.currentTime` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to 2ms. You can also enable `privacy.resistFingerprinting`, in which case the precision will be 100ms or the value of `privacy.resistFingerprinting.reduceTimerPrecision.microseconds`, whichever is larger.
To offer protection against timing attacks and [fingerprinting](/en-US/docs/Glossary/Fingerprinting), the precision of `playbackEvent.currentTime` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to 2ms. You can also enable `privacy.resistFingerprinting`, in which case the precision will be 100ms or the value of `privacy.resistFingerprinting.reduceTimerPrecision.microseconds`, whichever is larger.

For example, with reduced time precision, the result of `platbackEvent.currentTime` will always be a multiple of 0.002, or a multiple of 0.1 (or `privacy.resistFingerprinting.reduceTimerPrecision.microseconds`) with `privacy.resistFingerprinting` enabled.
For example, with reduced time precision, the result of `playbackEvent.currentTime` will always be a multiple of 0.002, or a multiple of 0.1 (or `privacy.resistFingerprinting.reduceTimerPrecision.microseconds`) with `privacy.resistFingerprinting` enabled.

```js
// reduced time precision (2ms) in Firefox 60
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/bluetooth/requestdevice/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ requestDevice(options)
- `companyIdentifier`
- : A mandatory number identifying the manufacturer of the device.
Company identifiers are listed in the Bluetooth specification [Assigned numbers](https://www.bluetooth.com/specifications/assigned-numbers/), Section 7.
For example, to match against devices manufacturered by "Digianswer A/S", with assigned hex number `0x000C`, you would specify `12`.
For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number `0x000C`, you would specify `12`.
- `dataPrefix` {{optional_inline}}
- : The data prefix.
A buffer containing values to match against the values at the start of the advertising manufacturer data.
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/canvasrenderingcontext2d/arcto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ can be used to change an underlined element that is in focus.
function drawCanvas() {
const rPoint = 4;
const colorConstruction = "#080";
const colorDragable = "#00F";
const colorDraggable = "#00F";
const [P0, P1, P2] = state.controlPoints;
ctx.font = "italic 14pt sans-serif";
Expand Down Expand Up @@ -783,7 +783,7 @@ can be used to change an underlined element that is in focus.
state.controlPoints.forEach((value) => {
ctx.beginPath();
ctx.arc(value.x, value.y, rPoint, 0, 2 * Math.PI);
ctx.fillStyle = colorDragable;
ctx.fillStyle = colorDraggable;
ctx.fill();
});
ctx.fillStyle = "#000";
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/clipboard/write/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ img {
#### Result

The result is shown below.
First click on the blue square, and then select the text "Paste here" and use your OS-specific keyboard combinatations to paste from the clipboard (such as `Ctrl+V` on Windows).
First click on the blue square, and then select the text "Paste here" and use your OS-specific keyboard combinations to paste from the clipboard (such as `Ctrl+V` on Windows).

{{embedlivesample("write_canvas_contents_to_the_clipboard", "", "420", "", "", "", "clipboard-write")}}

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/compute_pressure_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Fast and delightful web applications should balance workloads when the system's

### Pressure source types

In your web app or website, different tasks are fighting for the processing time of different processing units (CPU, GPU, and other specialized proccessing units). The current version of the Compute Pressure API specification defines two main source types that can be queried to gather pressure information:
In your web app or website, different tasks are fighting for the processing time of different processing units (CPU, GPU, and other specialized processing units). The current version of the Compute Pressure API specification defines two main source types that can be queried to gather pressure information:

- `"thermals"` represents the global thermal state of the entire system.
- `"cpu"` represents the average pressure of the central processing unit (CPU) across all its cores. This state can be affected by other apps and sites than the observing site.
Expand Down Expand Up @@ -112,4 +112,4 @@ try {

## See also

- [Compute Pressure demo](https://w3c.github.io/compute-pressure/demo/), which uses Mandelbrot sets and workers to create artifical pressure for test purposes.
- [Compute Pressure demo](https://w3c.github.io/compute-pressure/demo/), which uses Mandelbrot sets and workers to create artificial pressure for test purposes.
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ The first parameter to the logging methods can be a string containing zero or mo
- `%c`
- : Applies CSS style rules to all following text. See [Styling console output](#styling_console_output).

Some browsers may implement additional format specifiers. For example, Safari and Firefox support the C-style precision formating `%.<precision>f`. For example `console.log("Foo %.2f", 1.1)` will output the number to 2 decimal places: `Foo 1.10`, while `console.log("Foo %.2d", 1.1)` will output the number as two significant figures with a leading 0: `Foo 01`.
Some browsers may implement additional format specifiers. For example, Safari and Firefox support the C-style precision formatting `%.<precision>f`. For example `console.log("Foo %.2f", 1.1)` will output the number to 2 decimal places: `Foo 1.10`, while `console.log("Foo %.2d", 1.1)` will output the number as two significant figures with a leading 0: `Foo 01`.

Each of these pulls the next argument after the format string off the parameter list. For example:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Modern browsers provide users with a password manager, which enables users to st

In the Credential Management API, a password is represented by the {{domxref("PasswordCredential")}} interface. When a user successfully registers for or signs into your site, you can call the {{domxref("PasswordCredential.PasswordCredential()", "PasswordCredential()")}} constructor or {{domxref("CredentialsContainer.create", "navigator.credentials.create()")}} to create a `PasswordCredential` object from the credentials the user entered. You can then pass this into {{domxref("CredentialsContainer.store", "navigator.credentials.store()")}}, and the browser will ask the user if they want to store the password in the password manager.

![Sequence diagram showing creation and storage of a pasword credential.](password-create.svg)
![Sequence diagram showing creation and storage of a password credential.](password-create.svg)

When a user visits your site, you can call {{domxref("CredentialsContainer.get", "navigator.credentials.get()")}} to retrieve a stored password for your site, and use it to log the user in. Depending on the situation, you can log the user in silently or use the returned password to auto-fill a form field.

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/customstateset/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Additionally, the `:state()` pseudo-class can be used after the [`::part()`](/en

> [!WARNING]
> Browsers that do not yet support [`:state()`](/en-US/docs/Web/CSS/:state) will use a CSS `<dashed-ident>` for selecting custom states, which is now deprecated.
> For information about how to support both approaches see the [Compatibility with `<dashed-ident>` syntax](#compability_with_dashed-ident_syntax) section below.
> For information about how to support both approaches see the [Compatibility with `<dashed-ident>` syntax](#compatibility_with_dashed-ident_syntax) section below.
## Examples

Expand Down Expand Up @@ -485,7 +485,7 @@ Click the element to see a different border being applied as the state changes.

{{EmbedLiveSample("Non-boolean internal states", "100%", 50)}}

## Compability with `<dashed-ident>` syntax
## Comptability with `<dashed-ident>` syntax

Previously custom elements with custom states were selected using a `<dashed-ident>` instead of the [`:state()`](/en-US/docs/Web/CSS/:state) function.
Browser versions that don't support `:state()` will throw an error when supplied with an ident that is not prefixed with the double dash.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ addEventListener("rtctransform", (event) => {
The `rtctransform` event is fired when an encoded frame is enqueued on the {{domxref("RTCRtpScriptTransformer")}} and just once when the transformer's corresponding {{domxref("RTCRtpScriptTransformer")}} is constructed.
The code first determines what transform to apply using `name` value passed in the options (this allows {{domxref("RTCRtpScriptTransform")}} instances added to the incoming and outgoing WebRTC pipelines to share a single worker).
Encoded frames are then piped from the readable, through the selected transform {{domxref("TransformStream")}}, to a writeable.
The actual tranforming code is not shown.
The actual transforming code is not shown.

Note that this code is part of a more complete example provided in {{domxref("WebRTC API/Using Encoded Transforms", "Using WebRTC Encoded Transforms", "", "nocode")}}.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/featurepolicy/allowsfeature/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ allowsFeature(feature, origin)
- `feature`
- : The specific feature name to check its availability.
- `origin` {{Optional_inline}}
- : The specific origin name to check its availability. If not specificed, the default origin will be used.
- : The specific origin name to check its availability. If not specified, the default origin will be used.

### Return value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ checkButton.addEventListener("click", () => {

{{EmbedLiveSample("Examples", "100%", 220)}}

When `false`, if the value is missing, below 21, above 65, or othewise invalid, the invalid event will be logged to the console. To report the error to the user, use {{domxref("HTMLInputElement.reportValidity()")}} instead.
When `false`, if the value is missing, below 21, above 65, or otherwise invalid, the invalid event will be logged to the console. To report the error to the user, use {{domxref("HTMLInputElement.reportValidity()")}} instead.

## Specifications

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ reportButton.addEventListener("click", () => {

{{EmbedLiveSample("Basic usage", "100%", 120)}}

When `false`, if the value is missing, is below 21, is above 65, or is othewise invalid, an error message appears, an invalid event is fired, and we log that invalid event to the console.
When `false`, if the value is missing, is below 21, is above 65, or is otherwise invalid, an error message appears, an invalid event is fired, and we log that invalid event to the console.

### Custom error message

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmllinkelement/crossorigin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A string of a keyword specifying the CORS mode to use when fetching the resource
- `use-credentials`
- : Requests sent by the {{domxref("HTMLLinkElement")}} will use the `cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `include` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode. All resources requests by the element will use CORS, regardless of what domain the fetch is from.

If the `crossOrigin` property is specified with any other value, it is the same as specifing as the `anonymous`.
If the `crossOrigin` property is specified with any other value, it is the same as specifying as the `anonymous`.

If the `crossOrigin` property is not specified, the resource is fetched without CORS (the `no-cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `same-origin` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlmediaelement/crossorigin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A string of a keyword specifying the CORS mode to use when fetching the resource
- `use-credentials`
- : Requests sent by the {{domxref("HTMLMediaElement")}} will use the `cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `include` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode. All resources requests by the element will use CORS, regardless of what domain the fetch is from.

If the `crossOrigin` property is specified with any other value, it is the same as specifing as the `anonymous`.
If the `crossOrigin` property is specified with any other value, it is the same as specifying as the `anonymous`.

If the `crossOrigin` property is not specified, the resource is fetched without CORS (the `no-cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `same-origin` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlmeterelement/min/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser-compat: api.HTMLMeterElement.min

{{ APIRef("HTML DOM") }}

The **`min`** property of the {{DOMxRef("HTMLMeterElement")}} interface represents the mimimum value of the {{htmlelement("meter")}} element as a floating-point number. It reflects the element's [`min`](/en-US/docs/Web/HTML/Element/meter#min) attribute, or `0` if no `min` is defined.
The **`min`** property of the {{DOMxRef("HTMLMeterElement")}} interface represents the minimum value of the {{htmlelement("meter")}} element as a floating-point number. It reflects the element's [`min`](/en-US/docs/Web/HTML/Element/meter#min) attribute, or `0` if no `min` is defined.

This property can also be set directly, for example to set a default value based on some condition.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlscriptelement/crossorigin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A string of a keyword specifying the CORS mode to use when fetching the resource
- `use-credentials`
- : Requests sent by the {{domxref("HTMLScriptElement")}} will use the `cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `include` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode. All resources requests by the element will use CORS, regardless of which domain the fetch is from.

If the `crossOrigin` property is specified with any other value, it is the same as specifing it as the `anonymous`.
If the `crossOrigin` property is specified with any other value, it is the same as specifying it as the `anonymous`.

If the `crossOrigin` property is not specified, the resource is fetched without CORS (the `no-cors` {{domxref("Request.mode", "mode", "", "nocode")}} and the `same-origin` {{domxref("Request.credentials", "credentials", "", "nocode")}} mode).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A string representing the priority hint. Possible values are:
- : Default mode, which indicates no preference for the fetch priority.
The browser decides what is best for the user.

If the `fetchpriority` attribute is not specified or is specified with any other value, it is the same as specifing it as `auto`.
If the `fetchpriority` attribute is not specified or is specified with any other value, it is the same as specifying it as `auto`.

The `fetchPriority` property allows you to signal high or low priority external script
fetches. This can be useful when applied to {{HTMLElement("script")}} elements
Expand Down
Loading

0 comments on commit e07a87f

Please sign in to comment.