Skip to content

Fix typos #39658

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

Merged
merged 3 commits into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions .vscode/dictionaries/code-entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ dom.webnotifications.requireuserinteraction
dom.webshare
domxref
downdiagonalstrike
downloadprogress
DPAD
DRAGDDROP
dragdrop
Expand Down Expand Up @@ -559,6 +560,7 @@ oncurrententrychange
oncurrentscreenchange
ondequeue
ondispose
ondownloadprogress
onefive
ongesturestart
onnavigate
Expand Down
1 change: 1 addition & 0 deletions .vscode/dictionaries/proper-names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ carinaanand
Carle
Cassini
Caterina
caugner
Chadha
Chakra
Chamakh
Expand Down
1 change: 1 addition & 0 deletions .vscode/dictionaries/terms-abbreviations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ gameworlds
Gbps
GCLI
generatable
geofencing
geolocate
geolocated
geolocating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ This table details all the keys you can include.

## Load order

Registered objects in `content_scripts` are injected into matching web pages at the time specified by `run_at` (first `document_start`, then`document_end`, and finally `document_idle`):
Registered objects in `content_scripts` are injected into matching web pages at the time specified by `run_at` (first `document_start`, then `document_end`, and finally `document_idle`):

- In the order specified in the `content_scripts` array, for each object with a matching `run_at` value, then:
- CSS is applied in the order specified in its `css` array.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ The **`downloadprogress`** event of the {{domxref("CreateMonitor")}} interface i

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.

```js
addEventListener("downloadprogress", (event) => {});
```js-nolint
addEventListener("downloadprogress", (event) => { })

ondownloadprogress = (event) => {};
ondownloadprogress = (event) => { }
```

## Event type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ That brings us to the JavaScript code which makes everything work. Let's start w
let contentBox;

let nextArticleID = 1;
const visibleAds = new Set();
let visibleAds = new Set();
let previouslyVisibleAds = null;

let adObserver;
Expand Down Expand Up @@ -265,7 +265,7 @@ function handleVisibilityChange() {
if (document.hidden) {
if (!previouslyVisibleAds) {
previouslyVisibleAds = visibleAds;
visibleAds = [];
visibleAds = new Set();
previouslyVisibleAds.forEach((adBox) => {
updateAdTimer(adBox);
adBox.dataset.lastViewStarted = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Possible values include:
- `available`
- : The browser supports the given configuration and it can be used immediately.
- `downloadable`
- : The browser supports the given configuration, but it first needs to download an AI model, or some fune-tuning data for the model.
- : The browser supports the given configuration, but it first needs to download an AI model, or some fine-tuning data for the model.
- `downloading`
- : The browser supports the given configuration, but it has to finish an ongoing download before it can proceed.
- `unavailable`
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/rtcerror/sdplinenumber/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The {{domxref("RTCError")}} interface's read-only property
## Value

An unsigned integer value indicating the line within the SDP at which the syntax error
described by the `RTCError` object occurred. The lines are numbed starting
described by the `RTCError` object occurred. The lines are numbered starting
with line 1.

This property is `null` unless the value of
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/selection/getcomposedranges/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ It allows you to select text that is defined in different nodes in the DOM, and

#### HTML

The HTML defines some text nodes with some `<span>` elements to which we'll attach a shadow root using JavScript.
The HTML defines some text nodes with some `<span>` elements to which we'll attach a shadow root using JavaScript.
We also add some buttons for copying and applying the selection using a number of different methods.

```html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Summarizer.availability(options)
- `expectedInputLanguages`
- : An array of strings equal to [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags) (as specified in [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646)) specifying the expected languages of the input text. Defaults to `["en"]`.
- `expectedContextLanguages`
- : An array of strings equal to BCP 47 language tags specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedContext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call). Defaults to `["en"]`.
- : An array of strings equal to BCP 47 language tags specifying the expected languages of any provided context strings (either the [`sharedContext`](/en-US/docs/Web/API/Summarizer/create_static#sharedcontext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call). Defaults to `["en"]`.
- `format`
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
- `length`
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/summarizer/create_static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Summarizer.create(options)
- `expectedInputLanguages`
- : An array of strings specifying the expected languages of the input text, which should be valid [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag#List_of_common_primary_language_subtags) (as specified in [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646)). Defaults to `["en"]`.
- `expectedContextLanguages`
- : An array of strings specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedContext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call), which should be valid BCP 47 language tags. Defaults to `["en"]`.
- : An array of strings specifying the expected languages of any provided context strings (either the [`sharedContext`](#sharedcontext) passed to the `Summarizer`, or a `context` specified during a {{domxref("Summarizer.summarize", "summarize()")}} or {{domxref("Summarizer.summarizeStreaming", "summarizeStreaming()")}} call), which should be valid BCP 47 language tags. Defaults to `["en"]`.
- `format`
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
- `length`
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/summarizer/summarize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A {{jsxref("Promise")}} that fulfills with a string containing the generated sum
- `NotSupportedError` {{domxref("DOMException")}}
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
- `QuotaExceededError` {{domxref("DOMException")}}
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
- `UnknownError` {{domxref("DOMException")}}
- : Thrown if the `summarize()` call failed for any other reason, or a reason the user agent did not wish to disclose.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ A {{domxref("ReadableStream")}} containing the generated summary.
- `NotSupportedError` {{domxref("DOMException")}}
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
- `QuotaExceededError` {{domxref("DOMException")}}
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
- `UnknownError` {{domxref("DOMException")}}
- : Thrown if the `summarizeStreaming()` call failed for any other reason, or a reason the user agent did not wish to disclose.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Possible values include:
- `available`
- : The browser supports the given configuration and it can be used immediately.
- `downloadable`
- : The browser supports the given configuration, but it first needs to download an AI model, or some fune-tuning data for the model.
- : The browser supports the given configuration, but it first needs to download an AI model, or some fine-tuning data for the model.
- `downloading`
- : The browser supports the given configuration, but it has to finish an ongoing download before it can proceed.
- `unavailable`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const translatorAvailability = await Translator.availability({
});
```

These methods return an emumerated value indicating whether support is, or will be available for the specified set of options:
These methods return an enumerated value indicating whether support is, or will be available for the specified set of options:

- `downloadable` means that the implementation supports the requested options, but needs to download a model or some fine-tuning data.
- `downloading` means that the implementation supports the requested options, but needs to finish an ongoing download.
Expand Down