Skip to content

Commit 1d4acd0

Browse files
authored
Fix typos (#40486)
* Fix typos * Fix another
1 parent b08a792 commit 1d4acd0

File tree

11 files changed

+31
-13
lines changed

11 files changed

+31
-13
lines changed

.vscode/dictionaries/code-entities.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ accessibility.disablecache
2222
accessibilitysidebar
2323
acodec
2424
activetitlebarcolor
25+
addonsidebar
26+
addonsidebarmain
2527
addstream
2628
adduser
2729
adlm
@@ -528,6 +530,7 @@ ontextformatupdate
528530
ontextupdate
529531
onuncapturederror
530532
onwebkitmouseforcewillbegin
533+
onzoomlevelchange
531534
opendocument
532535
openidconnect
533536
openpgp4fpr
@@ -740,6 +743,7 @@ tnsa
740743
todoapp
741744
togglecamera
742745
togglemicrophone
746+
togglescreenshare
743747
toolbar-bgalignment
744748
toolbar-bgimage
745749
toolbaritem
@@ -870,3 +874,4 @@ xpcnativewrappers
870874
xpidl
871875
xpinstall
872876
xywh
877+
zoomlevelchange

.vscode/dictionaries/proper-names.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Bynens
7474
Béziers
7575
caitmuenster
7676
Camino
77+
Cammy
7778
Camtasia
7879
Canva
7980
Carakan
@@ -92,6 +93,7 @@ Choyce
9293
chrisdavidmills
9394
Chromecast
9495
Chromeo
96+
Chun-Li
9597
Cinepak
9698
Cipherlist.eu
9799
Clippy
@@ -167,6 +169,7 @@ Eichenwald
167169
Eisenberg
168170
Elaina
169171
Elchi
172+
Elfie
170173
Elly
171174
Emscripten
172175
Endtest
@@ -241,6 +244,7 @@ Hoshi
241244
Hoth
242245
Hyperaudio
243246
Hönigswald
247+
Ibuki
244248
Icecast
245249
idb-keyval
246250
Igalia
@@ -252,6 +256,7 @@ Ionos
252256
Irena
253257
ITCSS
254258
ITEC
259+
Jada
255260
Jalkhov
256261
jamiedoe
257262
Janc
@@ -272,10 +277,12 @@ jpmedley
272277
JSCAMP
273278
jswebm
274279
Junxia
280+
Juri
275281
Júnior
276282
Kadlec
277283
Kahlo
278284
Kaku
285+
Kang
279286
Kaply
280287
Kaspersky
281288
Katari
@@ -471,7 +478,9 @@ Roushan
471478
rsvg
472479
Rumyra
473480
Ryuno
481+
Sagat
474482
Saionaro
483+
Sakura
475484
Salame
476485
Salva
477486
Sandrina
@@ -549,6 +558,7 @@ Tokopedia
549558
Tomayac
550559
Tonisha
551560
Transcribear
561+
Transfonter
552562
Transformiix
553563
Trekhleb
554564
Trint
@@ -613,6 +623,7 @@ Yuki
613623
Yura
614624
Zakas
615625
Zakirt
626+
Zangief
616627
zantroke
617628
zantrokeregular
618629
Zaptec

files/en-us/learn_web_development/core/accessibility/test_your_skills/html/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ header {
321321

322322
The accessibility issues are:
323323

324-
1. The header image is decorative, so doesn't need alt text. The best solution if you are going to use decorative HTML images is to put `alt=""`, so a screenreader will just read out nothing — rather than a description, or the image file name. It is not part of the content.
324+
1. The header image is decorative, so doesn't need alt text. The best solution if you are going to use decorative HTML images is to put `alt=""`, so a screen reader will just read out nothing — rather than a description, or the image file name. It is not part of the content.
325325
2. The gallery images need alt text, and they are part of the content.
326326

327327
The updated HTML could look something like this:

files/en-us/learn_web_development/core/accessibility/test_your_skills/wai-aria/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The problem we have now is that when the DOM changes to show a new description,
149149
To complete the task:
150150

151151
1. Click **"Play"** in the code block below to edit the example in the MDN Playground.
152-
2. Update the HTML so that the description updates are announced by the screenreader.
152+
2. Update the HTML so that the description updates are announced by the screen reader.
153153

154154
> [!CALLOUT]
155155
>
@@ -238,7 +238,7 @@ function handleSelection(e) {
238238

239239
There are two ways to solve the problem outlined in this task:
240240

241-
- Add an `aria-live=""` attribute to the animal-description `<div>` to turn it into a live region, so when its content changes, the updated content will be read out by a screenreader. The best value is probably `assertive`, which makes the screenreader read out the updated content as soon as it changed. `polite` means that the screenreader will wait until other descriptions have finished before it starts reading out the changed content.
242-
- Add a `role="alert"` attribute to the animal-description `<div>`, to make it have alert box semantics. This has the same effect on the screenreader as setting `aria-live="assertive"` on it.
241+
- Add an `aria-live=""` attribute to the animal-description `<div>` to turn it into a live region, so when its content changes, the updated content will be read out by a screen reader. The best value is probably `assertive`, which makes the screen reader read out the updated content as soon as it changed. `polite` means that the screen reader will wait until other descriptions have finished before it starts reading out the changed content.
242+
- Add a `role="alert"` attribute to the animal-description `<div>`, to make it have alert box semantics. This has the same effect on the screen reader as setting `aria-live="assertive"` on it.
243243

244244
</details>

files/en-us/mozilla/firefox/releases/141/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Firefox 141 is the current [Beta version of Firefox](https://www.firefox.com/en-
9595

9696
#### Marionette
9797

98-
- To avoid unnecessary 200ms delays for each call to `WebDriver:ElementClick` - even when no navigation occurrs - we lowered the click-and-wait timeout for a potential navigation to 50ms for backward compatibility. The [timeout is now also configurable](https://firefox-source-docs.mozilla.org/testing/marionette/Prefs.html#marionette-navigate-after-click-timeout) and [can be completely disabled](https://firefox-source-docs.mozilla.org/testing/marionette/Prefs.html#marionette-navigate-after-click-enabled) by users through a preference ([Firefox bug 1972271](https://bugzil.la/1972271)).
98+
- To avoid unnecessary 200ms delays for each call to `WebDriver:ElementClick` - even when no navigation occurs - we lowered the click-and-wait timeout for a potential navigation to 50ms for backward compatibility. The [timeout is now also configurable](https://firefox-source-docs.mozilla.org/testing/marionette/Prefs.html#marionette-navigate-after-click-timeout) and [can be completely disabled](https://firefox-source-docs.mozilla.org/testing/marionette/Prefs.html#marionette-navigate-after-click-enabled) by users through a preference ([Firefox bug 1972271](https://bugzil.la/1972271)).
9999
- Added support in Marionette for interacting with CHIPS cookies (Cookies Having Independent Partitioned State) ([Firefox bug 1972830](https://bugzil.la/1972830)).
100100

101101
## Changes for add-on developers

files/en-us/web/api/baseaudiocontext/state/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A string. Possible values are:
1919
- : The audio context has been closed (with the
2020
{{domxref("AudioContext.close()")}} method.)
2121
- `interrupted` {{experimental_inline}}
22-
- : The audio context has been interrupted by an occurence outside the control of the web app.
22+
- : The audio context has been interrupted by an occurrence outside the control of the web app.
2323
- `running`
2424
- : The audio context is running normally.
2525
- `suspended`

files/en-us/web/api/mediastream_recording_api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ recordBtn.addEventListener("click", async () => {
154154
video.src = window.URL.createObjectURL(blob);
155155
});
156156
mediaRecorder.addEventListener("error", (e) => {
157-
console.error("An error occured:", e);
157+
console.error("An error occurred:", e);
158158
});
159159
}
160160
isRecording = true;

files/en-us/web/api/screen_capture_api/captured_surface_control/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Finally, we include a {{htmlelement("video")}} element to display the captured d
8787

8888
## App CSS
8989

90-
The app CSS is minimal; it is worth noting that we have given the `<video>` a {{cssxref("max-width")}} of `100%`, so that it is constrained inside the `<body>`. The `<video>` could grow dramatically when the captured display surface is embedded inside it (its size is the capture's intrisic size), which could cause overflow issues if we didn't constrain it.
90+
The app CSS is minimal; it is worth noting that we have given the `<video>` a {{cssxref("max-width")}} of `100%`, so that it is constrained inside the `<body>`. The `<video>` could grow dramatically when the captured display surface is embedded inside it (its size is the capture's intrinsic size), which could cause overflow issues if we didn't constrain it.
9191

9292
```css live-sample___surface-control-demo
9393
body {
@@ -142,13 +142,13 @@ startBtn.addEventListener("click", startCapture);
142142
stopBtn.addEventListener("click", stopCapture);
143143
```
144144

145-
The `startCapture()` function, which starts screen capture, looks like so. We first create a new `CaptureController`, and pass it into our [`MediaDisplayOptions`](/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options) object, along with a [`displaysurface`](/en-US/docs/Web/API/MediaTrackConstraints/displaySurface) constraint that causes the app to recommend sharing browser tabs.
145+
The `startCapture()` function, which starts screen capture, looks like so. We first create a new `CaptureController`, and pass it into our [`MediaDisplayOptions`](/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options) object, along with a [`displaySurface`](/en-US/docs/Web/API/MediaTrackConstraints/displaySurface) constraint that causes the app to recommend sharing browser tabs.
146146

147147
Now it's time to capture our media; we do so using a {{domxref("MediaDevices.getDisplayMedia()")}} call, to which we pass our options, and set the resulting promise as the value of the `<video>` element's {{domxref("HTMLMediaElement.srcObject", "srcObject")}} property. When it resolves, we continue the function by calling {{domxref("CaptureController.resetZoomLevel()")}} and setting the `<output>` element's contents to `100%`. This is not strictly necessary, but it can be a bit confusing when you capture a tab to find it is already zoomed out or in. Setting the zoom level to `100%` on capture feels a bit more logical. These lines of code deal with the case where the app is refreshed without pressing "Stop Capture", then capture is started again.
148148

149149
Our next step is to call {{domxref("CaptureController.getSupportedZoomLevels()")}} to retrieve the zoom levels the captured display surface supports, and store the resulting array in the `zoomLevels` variable.
150150

151-
Next, we use the controller's {{domxref("CaptureController.zoomlevelchange_event", "zoomlevelchange")}} event to detect when the zoom level is changed, print the current {{domxref("CaptureController.zoomlevel", "zoomlevel")}} to the `<output>` element, and call the user-defined `updateZoomButtonState()` function. This function will query the `zoomLevels` array to check whether the user can zoom in or out any further after each zoom change. We'll explain `updateZoomButtonState()` later on.
151+
Next, we use the controller's {{domxref("CaptureController.zoomlevelchange_event", "zoomlevelchange")}} event to detect when the zoom level is changed, print the current {{domxref("CaptureController.zoomLevel", "zoomLevel")}} to the `<output>` element, and call the user-defined `updateZoomButtonState()` function. This function will query the `zoomLevels` array to check whether the user can zoom in or out any further after each zoom change. We'll explain `updateZoomButtonState()` later on.
152152

153153
We next unhide our zoom controls with `display: block`, enable our stop button, and disable our start button, so that the state of the controls makes sense after capture has bene started.
154154

files/en-us/web/api/web_workers_api/using_web_workers/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ worker.onmessage = (event) => {
342342
event.data.queryMethodArguments,
343343
);
344344
} else {
345-
this.defaultListener.call(this, event.data);
345+
this.defaultListener(event.data);
346346
}
347347
};
348348
```
@@ -477,7 +477,7 @@ function QueryableWorker(url, defaultListener, onError) {
477477
event.data.queryMethodArguments,
478478
);
479479
} else {
480-
this.defaultListener.call(this, event.data);
480+
this.defaultListener(event.data);
481481
}
482482
};
483483
}

files/en-us/web/css/css_custom_highlight_api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To enable styling text ranges on a webpage using the CSS Custom Highlight API, y
3030
</label>
3131
```
3232

33-
This example uses the {{cssxref("text-decoration")}} property to strike throgh the `steps` highlight range defined by our JavaScript:
33+
This example uses the {{cssxref("text-decoration")}} property to strike through the `steps` highlight range defined by our JavaScript:
3434

3535
```css
3636
::highlight(steps) {

0 commit comments

Comments
 (0)