From b303103dcd5e81d9d16a47899d7afb5d2a12c827 Mon Sep 17 00:00:00 2001 From: Deera Wijesundara Date: Wed, 23 Oct 2024 00:12:58 +0530 Subject: [PATCH 1/4] Fix typos in comments and documentation --- files/en-us/glossary/accessible_name/index.md | 2 +- files/en-us/glossary/rate_limit/index.md | 2 +- .../learn/css/building_blocks/backgrounds_and_borders/index.md | 2 +- .../introducing_complete_toolchain/index.md | 2 +- files/en-us/web/api/clipboard_api/index.md | 2 +- files/en-us/web/api/clipboarditem/clipboarditem/index.md | 2 +- files/en-us/web/api/compute_pressure_api/index.md | 2 +- files/en-us/web/api/customstateset/index.md | 2 +- files/en-us/web/api/element/innerhtml/index.md | 2 +- files/en-us/web/api/htmlbuttonelement/type/index.md | 2 +- files/en-us/web/api/mediacapabilities/decodinginfo/index.md | 2 +- .../web/api/rtcrtptransceiver/setcodecpreferences/index.md | 2 +- .../storage_api/storage_quotas_and_eviction_criteria/index.md | 2 +- .../en-us/web/api/webrtc_api/using_encoded_transforms/index.md | 2 +- .../en-us/web/api/websockets_api/using_websocketstream/index.md | 2 +- files/en-us/web/api/xrwebgllayer/fixedfoveation/index.md | 2 +- files/en-us/web/css/@container/index.md | 2 +- files/en-us/web/css/@counter-style/range/index.md | 2 +- files/en-us/web/css/bottom/index.md | 2 +- .../mastering_wrapping_of_flex_items/index.md | 2 +- files/en-us/web/css/position-try-fallbacks/index.md | 2 +- files/en-us/web/css/quotes/index.md | 2 +- files/en-us/web/html/element/template/index.md | 2 +- files/en-us/web/http/status/404/index.md | 2 +- files/en-us/web/manifest/related_applications/index.md | 2 +- files/en-us/web/privacy/third-party_cookies/index.md | 2 +- .../tutorials/cycletracker/javascript_functionality/index.md | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/files/en-us/glossary/accessible_name/index.md b/files/en-us/glossary/accessible_name/index.md index d573dcb58d1eb39..7e5cbe6cdb81c7a 100644 --- a/files/en-us/glossary/accessible_name/index.md +++ b/files/en-us/glossary/accessible_name/index.md @@ -18,7 +18,7 @@ Other elements get their accessible name from the content of associated elements For some elements, the accessible name comes from the element's attributes; for example, the `alt` attribute in the case of {{HTMLElement("img")}}. Given `banana`, the image's accessible name is "banana." -To create an association between visible content and an element or multiple text nodes and an element, the [`aria-labeledby`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby) attribute can be used. If there is no visible text to associate with a UI element needing an accessible name, the [`aria-label`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) attribute can be used. Names should not be added to elements marking up inline text, like {{HTMLElement("code")}}, {{HTMLElement("del")}}, and {{HTMLElement("mark")}}. +To create an association between visible content and an element or multiple text nodes and an element, the [`aria-labelledby`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby) attribute can be used. If there is no visible text to associate with a UI element needing an accessible name, the [`aria-label`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) attribute can be used. Names should not be added to elements marking up inline text, like {{HTMLElement("code")}}, {{HTMLElement("del")}}, and {{HTMLElement("mark")}}. Many elements, such as sections of textual content, don't need an accessible name. All controls should have an accessible name. All images that convey information and aren't purely presentational do too. diff --git a/files/en-us/glossary/rate_limit/index.md b/files/en-us/glossary/rate_limit/index.md index ef949672c1d98b6..1153e2b090701bf 100644 --- a/files/en-us/glossary/rate_limit/index.md +++ b/files/en-us/glossary/rate_limit/index.md @@ -6,7 +6,7 @@ page-type: glossary-definition {{GlossarySidebar}} -In computing, especially in networking, **rate limiting** means controlling how many operations can be performed in a given amount of time, usually to avoid overloading the system and causing performance degredation. For example, a server might limit the number of requests it will accept from a single client in a given time period, which not only optimizes the server's overall performance but also mitigates attacks like {{glossary("DoS attack")}}. +In computing, especially in networking, **rate limiting** means controlling how many operations can be performed in a given amount of time, usually to avoid overloading the system and causing performance degradation. For example, a server might limit the number of requests it will accept from a single client in a given time period, which not only optimizes the server's overall performance but also mitigates attacks like {{glossary("DoS attack")}}. Rate limiting is typically synonymous with {{glossary("throttle", "throttling")}}, although {{glossary("debounce", "debouncing")}} is another viable strategy which provides better semantics and user experience in certain cases. diff --git a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md index 5fcaf7b4fc5cb57..37a5fa7bd2e1be1 100644 --- a/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md +++ b/files/en-us/learn/css/building_blocks/backgrounds_and_borders/index.md @@ -260,7 +260,7 @@ The individual properties include the {{cssxref("border-width")}}, {{cssxref("bo } ``` -There are longhand properities for width, style, and color for each of the four sides: +There are longhand properties for width, style, and color for each of the four sides: ```css .box { diff --git a/files/en-us/learn/tools_and_testing/understanding_client-side_tools/introducing_complete_toolchain/index.md b/files/en-us/learn/tools_and_testing/understanding_client-side_tools/introducing_complete_toolchain/index.md index ef2ce80c65751ac..1e464c23c13affe 100644 --- a/files/en-us/learn/tools_and_testing/understanding_client-side_tools/introducing_complete_toolchain/index.md +++ b/files/en-us/learn/tools_and_testing/understanding_client-side_tools/introducing_complete_toolchain/index.md @@ -64,7 +64,7 @@ For our sample project, we'll be using a toolchain specifically designed to aid ## Checking prerequisites -You should have most of the softwares already if you've been following along with the previous chapters. Here's what you should have before proceeding to the real setup steps. They only need to be done once and you don't need to repeat these again for future projects. +You should have most of the software already if you've been following along with the previous chapters. Here's what you should have before proceeding to the real setup steps. They only need to be done once and you don't need to repeat these again for future projects. ### Creating a GitHub account diff --git a/files/en-us/web/api/clipboard_api/index.md b/files/en-us/web/api/clipboard_api/index.md index 06580df46e9a0f1..61ed7bc54f6a0fc 100644 --- a/files/en-us/web/api/clipboard_api/index.md +++ b/files/en-us/web/api/clipboard_api/index.md @@ -27,7 +27,7 @@ The Clipboard API allows users to programmatically read and write text and other Events are fired as the result of {{domxref("Element/cut_event", "cut")}}, {{domxref("Element/copy_event", "copy")}}, and {{domxref("Element/paste_event", "paste")}} operations modifying the clipboard. The events have a default action, for example the `copy` action copies the current selection to the system clipboard by default. -The default action can be overriden by the event handler — see each of the events for more information. +The default action can be overridden by the event handler — see each of the events for more information. ## Interfaces diff --git a/files/en-us/web/api/clipboarditem/clipboarditem/index.md b/files/en-us/web/api/clipboarditem/clipboarditem/index.md index 3d7958bc21d777f..4c2b460e5a44535 100644 --- a/files/en-us/web/api/clipboarditem/clipboarditem/index.md +++ b/files/en-us/web/api/clipboarditem/clipboarditem/index.md @@ -61,7 +61,7 @@ async function writeClipImg() { ]); console.log("Fetched image copied."); } else { - console.log("image png is not suported"); + console.log("image png is not supported"); } } catch (err) { console.error(err.name, err.message); diff --git a/files/en-us/web/api/compute_pressure_api/index.md b/files/en-us/web/api/compute_pressure_api/index.md index c73fba53a4cef82..2f21b0c28bcbe99 100644 --- a/files/en-us/web/api/compute_pressure_api/index.md +++ b/files/en-us/web/api/compute_pressure_api/index.md @@ -64,7 +64,7 @@ The Compute Pressure API is [policy-controlled](/en-US/docs/Web/HTTP/Permissions The following interfaces are present in the Compute Pressure API and the API surface is similar to other observers, such as {{domxref("IntersectionObserver")}}, {{domxref("MutationObserver")}}, or {{domxref("PerformanceObserver")}}. - {{domxref("PressureObserver")}} {{experimental_inline}} - - : Notifies when the system's pressure changes for a specfied number of sources (e.g. the CPU) at a predefined sample interval. + - : Notifies when the system's pressure changes for a specified number of sources (e.g. the CPU) at a predefined sample interval. - {{domxref("PressureRecord")}} - : Describes the pressure trend at a specific moment of transition. diff --git a/files/en-us/web/api/customstateset/index.md b/files/en-us/web/api/customstateset/index.md index 4240ba70889be59..1c725af793682a6 100644 --- a/files/en-us/web/api/customstateset/index.md +++ b/files/en-us/web/api/customstateset/index.md @@ -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)}} -## Comptability with `` syntax +## Comptibility with `` syntax Previously custom elements with custom states were selected using a `` 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. diff --git a/files/en-us/web/api/element/innerhtml/index.md b/files/en-us/web/api/element/innerhtml/index.md index 1da152d820bffcb..99ea7180f67b063 100644 --- a/files/en-us/web/api/element/innerhtml/index.md +++ b/files/en-us/web/api/element/innerhtml/index.md @@ -17,7 +17,7 @@ To insert the HTML into the document rather than replace the contents of an elem The serialization of the DOM tree read from the property does not include {{glossary("shadow tree", "shadow roots")}} — if you want to get a HTML string that includes shadow roots, you must instead use the {{domxref("Element.getHTML()")}} or {{domxref("ShadowRoot.getHTML()")}} methods. Similarly, when setting element content using `innerHTML`, the HTML string is parsed into DOM elements that do not contain shadow roots. -So for example [`