Skip to content

Commit ca5cf10

Browse files
Rageking8Josh-Cena
andauthored
Fix typos (#39658)
* Fix 2 typos * Fix more * Fix more --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent caa4012 commit ca5cf10

File tree

15 files changed

+19
-15
lines changed

15 files changed

+19
-15
lines changed

.vscode/dictionaries/code-entities.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ dom.webnotifications.requireuserinteraction
218218
dom.webshare
219219
domxref
220220
downdiagonalstrike
221+
downloadprogress
221222
DPAD
222223
DRAGDDROP
223224
dragdrop
@@ -559,6 +560,7 @@ oncurrententrychange
559560
oncurrentscreenchange
560561
ondequeue
561562
ondispose
563+
ondownloadprogress
562564
onefive
563565
ongesturestart
564566
onnavigate

.vscode/dictionaries/proper-names.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ carinaanand
9292
Carle
9393
Cassini
9494
Caterina
95+
caugner
9596
Chadha
9697
Chakra
9798
Chamakh

.vscode/dictionaries/terms-abbreviations.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ gameworlds
270270
Gbps
271271
GCLI
272272
generatable
273+
geofencing
273274
geolocate
274275
geolocated
275276
geolocating

files/en-us/mozilla/add-ons/webextensions/manifest.json/content_scripts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ This table details all the keys you can include.
308308

309309
## Load order
310310

311-
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`):
311+
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`):
312312

313313
- In the order specified in the `content_scripts` array, for each object with a matching `run_at` value, then:
314314
- CSS is applied in the order specified in its `css` array.

files/en-us/web/api/createmonitor/downloadprogress_event/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ The **`downloadprogress`** event of the {{domxref("CreateMonitor")}} interface i
1616

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

19-
```js
20-
addEventListener("downloadprogress", (event) => {});
19+
```js-nolint
20+
addEventListener("downloadprogress", (event) => { })
2121
22-
ondownloadprogress = (event) => {};
22+
ondownloadprogress = (event) => { }
2323
```
2424

2525
## Event type

files/en-us/web/api/intersection_observer_api/timing_element_visibility/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ That brings us to the JavaScript code which makes everything work. Let's start w
199199
let contentBox;
200200

201201
let nextArticleID = 1;
202-
const visibleAds = new Set();
202+
let visibleAds = new Set();
203203
let previouslyVisibleAds = null;
204204

205205
let adObserver;
@@ -265,7 +265,7 @@ function handleVisibilityChange() {
265265
if (document.hidden) {
266266
if (!previouslyVisibleAds) {
267267
previouslyVisibleAds = visibleAds;
268-
visibleAds = [];
268+
visibleAds = new Set();
269269
previouslyVisibleAds.forEach((adBox) => {
270270
updateAdTimer(adBox);
271271
adBox.dataset.lastViewStarted = 0;

files/en-us/web/api/languagedetector/availability_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Possible values include:
3636
- `available`
3737
- : The browser supports the given configuration and it can be used immediately.
3838
- `downloadable`
39-
- : The browser supports the given configuration, but it first needs to download an AI model, or some fune-tuning data for the model.
39+
- : The browser supports the given configuration, but it first needs to download an AI model, or some fine-tuning data for the model.
4040
- `downloading`
4141
- : The browser supports the given configuration, but it has to finish an ongoing download before it can proceed.
4242
- `unavailable`

files/en-us/web/api/rtcerror/sdplinenumber/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The {{domxref("RTCError")}} interface's read-only property
1515
## Value
1616

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

2121
This property is `null` unless the value of

files/en-us/web/api/selection/getcomposedranges/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ It allows you to select text that is defined in different nodes in the DOM, and
5959

6060
#### HTML
6161

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

6565
```html

files/en-us/web/api/summarizer/availability_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Summarizer.availability(options)
2828
- `expectedInputLanguages`
2929
- : 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"]`.
3030
- `expectedContextLanguages`
31-
- : 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"]`.
31+
- : 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"]`.
3232
- `format`
3333
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
3434
- `length`

files/en-us/web/api/summarizer/create_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Summarizer.create(options)
3131
- `expectedInputLanguages`
3232
- : 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"]`.
3333
- `expectedContextLanguages`
34-
- : 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"]`.
34+
- : 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"]`.
3535
- `format`
3636
- : An enumerated value specifying the text {{domxref("Summarizer.format", "format")}} you want summaries returned in. Defaults to `markdown`.
3737
- `length`

files/en-us/web/api/summarizer/summarize/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A {{jsxref("Promise")}} that fulfills with a string containing the generated sum
4545
- `NotSupportedError` {{domxref("DOMException")}}
4646
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
4747
- `QuotaExceededError` {{domxref("DOMException")}}
48-
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
48+
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
4949
- `UnknownError` {{domxref("DOMException")}}
5050
- : Thrown if the `summarize()` call failed for any other reason, or a reason the user agent did not wish to disclose.
5151

files/en-us/web/api/summarizer/summarizestreaming/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A {{domxref("ReadableStream")}} containing the generated summary.
4545
- `NotSupportedError` {{domxref("DOMException")}}
4646
- : Thrown if the provided `context` is not in language the `Summarizer` supports.
4747
- `QuotaExceededError` {{domxref("DOMException")}}
48-
- : Thrown if the summarize operation exceeds the available {{domxref("Summarize.inputQuota", "inputQuota")}}.
48+
- : Thrown if the summarize operation exceeds the available {{domxref("Summarizer.inputQuota", "inputQuota")}}.
4949
- `UnknownError` {{domxref("DOMException")}}
5050
- : Thrown if the `summarizeStreaming()` call failed for any other reason, or a reason the user agent did not wish to disclose.
5151

files/en-us/web/api/translator/availability_static/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Possible values include:
3838
- `available`
3939
- : The browser supports the given configuration and it can be used immediately.
4040
- `downloadable`
41-
- : The browser supports the given configuration, but it first needs to download an AI model, or some fune-tuning data for the model.
41+
- : The browser supports the given configuration, but it first needs to download an AI model, or some fine-tuning data for the model.
4242
- `downloading`
4343
- : The browser supports the given configuration, but it has to finish an ongoing download before it can proceed.
4444
- `unavailable`

files/en-us/web/api/translator_and_language_detector_apis/using/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const translatorAvailability = await Translator.availability({
104104
});
105105
```
106106

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

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

0 commit comments

Comments
 (0)