From 401b6b1355a1ca28f686cff9be83384e68e81d82 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 30 Dec 2024 21:05:57 +0800 Subject: [PATCH 1/7] Fix bcd key for svg `stop-{color,opacity}` attribiute (#37349) fix bcd key for stop-{color,opacity} Co-authored-by: Brian Smith --- files/en-us/web/svg/attribute/stop-color/index.md | 2 +- files/en-us/web/svg/attribute/stop-opacity/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/svg/attribute/stop-color/index.md b/files/en-us/web/svg/attribute/stop-color/index.md index 3a9c789609dd9b9..89fbf1be3512d36 100644 --- a/files/en-us/web/svg/attribute/stop-color/index.md +++ b/files/en-us/web/svg/attribute/stop-color/index.md @@ -2,7 +2,7 @@ title: stop-color slug: Web/SVG/Attribute/stop-color page-type: svg-attribute -browser-compat: svg.elements.stop.stop-color +browser-compat: svg.global_attributes.stop-color --- {{SVGRef}} diff --git a/files/en-us/web/svg/attribute/stop-opacity/index.md b/files/en-us/web/svg/attribute/stop-opacity/index.md index a7b16a23fcc71a6..d1382878c63da3b 100644 --- a/files/en-us/web/svg/attribute/stop-opacity/index.md +++ b/files/en-us/web/svg/attribute/stop-opacity/index.md @@ -2,7 +2,7 @@ title: stop-opacity slug: Web/SVG/Attribute/stop-opacity page-type: svg-attribute -browser-compat: svg.elements.stop.stop-opacity +browser-compat: svg.global_attributes.stop-opacity --- {{SVGRef}} From d9abdb3436765117dc3fd66f1e63abe44d511e1b Mon Sep 17 00:00:00 2001 From: Evan Suhyeong Lee Date: Mon, 30 Dec 2024 09:50:53 -0500 Subject: [PATCH 2/7] Update files/en-us/learn_web_development/core/index.md (#37450) Update index.md --- files/en-us/learn_web_development/core/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/learn_web_development/core/index.md b/files/en-us/learn_web_development/core/index.md index d1afa4efcf0f066..cafd7f7b370cdca 100644 --- a/files/en-us/learn_web_development/core/index.md +++ b/files/en-us/learn_web_development/core/index.md @@ -32,7 +32,7 @@ In particular, if you've never done any coding before, we'd recommend the [Your - : Access to web content such as public services, education, e-commerce sites, and entertainment is a human right. No one should be excluded based on disability, race, geography, or other human characteristics. This module discusses the best practices and techniques you should learn to make your websites as accessible as possible. - [Design for developers](/en-US/docs/Learn_web_development/Core/Design_for_developers) - : The idea of this module is to (re-)introduce developers to design thinking. They may not want to work as designers, but having some basic user experience and design theory is good for everyone involved in building websites, no matter what their role. At the very least, even the most technical, "non-designer" developer should understand design briefs, why things are designed as they are, and be able to get into the mindset of the user. And it'll help them make their portfolios look better. -- [Version_control](/en-US/docs/Learn_web_development/Core/Version_control) +- [Version control](/en-US/docs/Learn_web_development/Core/Version_control) - : Version control tools are an essential part of modern workflows, for backing up and collaborating on codebases. This module takes you through the essentials of version control using Git and GitHub. ## See also From ac621d15c29faa0da7a7b1829bc8e5148a8480e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:56:56 +0000 Subject: [PATCH 3/7] Bump lint-staged from 15.2.11 to 15.3.0 (#37451) --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 2f7bae4d0106db4..be2733c345b1c46 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "gray-matter": "^4.0.3", "husky": "9.1.7", "js-yaml": "^4.1.0", - "lint-staged": "15.2.11", + "lint-staged": "15.3.0", "markdownlint-cli2": "0.17.0", "markdownlint-rule-search-replace": "1.2.0", "prettier": "3.4.2" diff --git a/yarn.lock b/yarn.lock index f5e0fe0ef46058f..350165790112dfa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2459,10 +2459,10 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^5.3.0, chalk@~5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" - integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== +chalk@^5.3.0, chalk@~5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.4.1.tgz#1b48bf0963ec158dce2aacf69c093ae2dd2092d8" + integrity sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w== change-file-extension@^0.1.1: version "0.1.1" @@ -5603,12 +5603,12 @@ linkify-it@^5.0.0: dependencies: uc.micro "^2.0.0" -lint-staged@15.2.11: - version "15.2.11" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.2.11.tgz#e88440982f4a4c1d55a9a7a839259ec3806bd81b" - integrity sha512-Ev6ivCTYRTGs9ychvpVw35m/bcNDuBN+mnTeObCL5h+boS5WzBEC6LHI4I9F/++sZm1m+J2LEiy0gxL/R9TBqQ== +lint-staged@15.3.0: + version "15.3.0" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.3.0.tgz#32a0b3f2f2b8825950bd3b9fb093e045353bdfa3" + integrity sha512-vHFahytLoF2enJklgtOtCtIjZrKD/LoxlaUusd5nh7dWv/dkKQJY74ndFSzxCdv7g0ueGg1ORgTSt4Y9LPZn9A== dependencies: - chalk "~5.3.0" + chalk "~5.4.1" commander "~12.1.0" debug "~4.4.0" execa "~8.0.1" From fabc398130abaab48f84f0e21c6755c8fb6dc836 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Tue, 31 Dec 2024 00:43:07 +0800 Subject: [PATCH 4/7] Add glossary term `Just-In-Time Compilation (JIT)` (#37418) * Add glossary term 'just-in-time compilation' * minor improvements * Update files/en-us/glossary/just_in_time_compilation/index.md --------- Co-authored-by: Brian Smith --- files/en-us/glossary/compile/index.md | 4 +++- .../just_in_time_compilation/index.md | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 files/en-us/glossary/just_in_time_compilation/index.md diff --git a/files/en-us/glossary/compile/index.md b/files/en-us/glossary/compile/index.md index a5f3e17081c0183..68e311202917679 100644 --- a/files/en-us/glossary/compile/index.md +++ b/files/en-us/glossary/compile/index.md @@ -10,7 +10,7 @@ page-type: glossary-definition Typically, a compiler transforms code written in a higher-level language such as [C++](https://en.wikipedia.org/wiki/C++), [Rust](), or [Java]() into executable (runnable) code — so-called **binary code** or **machine code**. [WebAssembly](/en-US/docs/WebAssembly), for example, is a form of executable binary code that [can be compiled from code written in C++, Rust, C#, Go, Swift, and several other languages](https://webassembly.org/getting-started/developers-guide/) and run on any web page, with most features supported in modern browsers (see [browser compatibility table](/en-US/docs/WebAssembly#browser_compatibility)). -Most compilers perform either ahead-of-time (AOT) compilation or just-in-time (JIT) compilation. +Most compilers perform either ahead-of-time (AOT) compilation or {{glossary("Just In Time Compilation", "just-in-time (JIT)")}} compilation. The GNU `gcc` compiler is one well-known example of an AOT compiler. AOT compilers are typically invoked from the command line in a shell environment (from within a terminal or console) or within an {{Glossary("IDE")}}. @@ -22,3 +22,5 @@ Compilers may also translate among higher-level languages — for example, from - [Compiler](https://en.wikipedia.org/wiki/Compiler) on Wikipedia - [WebAssembly](/en-US/docs/WebAssembly) +- Related glossary terms: + - {{glossary("Just In Time Compilation", "Just-In-Time (JIT)")}} diff --git a/files/en-us/glossary/just_in_time_compilation/index.md b/files/en-us/glossary/just_in_time_compilation/index.md new file mode 100644 index 000000000000000..4281497be7ad367 --- /dev/null +++ b/files/en-us/glossary/just_in_time_compilation/index.md @@ -0,0 +1,19 @@ +--- +title: Just-In-Time Compilation (JIT) +slug: Glossary/Just_In_Time_Compilation +page-type: glossary-definition +--- + +{{GlossarySidebar}} + +**JIT** (_Just-In-Time Compilation_) is a {{glossary("compile", "compilation")}} process in which code is translated from an intermediate representation or a higher-level language (e.g., {{glossary("JavaScript")}} or Java bytecode) into machine code _at runtime_, rather than prior to execution. This approach combines the benefits of both interpretation and ahead-of-time (AOT) compilation. + +JIT compilers typically continuously analyze the code as it is executed, identifying parts of the code that are executed frequently (hot spots). If the speedup gains outweigh the compilation overhead, then the JIT compilers will compile those parts into machine code. The compiled code is then executed directly by the processor, which can result in significant performance improvements. + +JIT is commonly used in modern {{glossary("browser", "web browsers")}} to optimize the performance of JavaScript code. + +## See also + +- [Just-In-Time Compilation](https://en.wikipedia.org/wiki/Just-in-time_compilation) on Wikipedia +- Related glossary terms: + - {{glossary("compile")}} From dbda850579219be098e81d3948641b9a2977b5cc Mon Sep 17 00:00:00 2001 From: Himanshu Date: Mon, 30 Dec 2024 22:39:07 +0530 Subject: [PATCH 5/7] Fixes dynamic button label for screenreader users (#37355) Replaces dynamic label by static as aria-expanded attribute sufficiently captures this --- .../accessibility/aria/attributes/aria-expanded/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md b/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md index acc73e3c176f5d0..92c071f4502a693 100644 --- a/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md +++ b/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md @@ -21,16 +21,16 @@ Use the `aria-owns` property on the elements that own expandable grouping contai ### Buttons -A button that opens a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the expandable widget and `aria-expanded` set to the current state of the widget. +A button that toggles a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the toggled widget and `aria-expanded` set to the current state of the widget. ```html - + ``` When the widget is visible, the controlling object relays that information via having `aria-expanded="true"` set on it. The accessible name of the controlling object should reflect this change. ```html - + ``` ### Menu From 873e38320b7f7dbe0492f96a02e7e6503ac8c3b3 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Tue, 31 Dec 2024 01:28:20 +0800 Subject: [PATCH 6/7] WebExt: remove msedge compat data license and improve content (#37449) * remove msedge compat data license and improve content * typo: fix pronoun --- .../webextensions/api/omnibox/ondeletesuggestion/index.md | 4 +--- .../add-ons/webextensions/api/runtime/getbrowserinfo/index.md | 3 --- .../add-ons/webextensions/api/runtime/getframeid/index.md | 3 --- .../browser_support_for_javascript_apis/index.md | 3 --- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/omnibox/ondeletesuggestion/index.md b/files/en-us/mozilla/add-ons/webextensions/api/omnibox/ondeletesuggestion/index.md index 6c22fd866ddbe7b..dcefd3d7eda221b 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/omnibox/ondeletesuggestion/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/omnibox/ondeletesuggestion/index.md @@ -8,7 +8,7 @@ browser-compat: webextensions.api.omnibox.onDeleteSuggestion {{AddonSidebar}} Fired whenever the user deletes a suggestion. -A suggestion can be deleted when {{WebExtAPIRef("omnibox.SuggestResult","SuggestResult")}}`.deletable` is set to true. +A suggestion can be deleted when the property `deletable` of a {{WebExtAPIRef("omnibox.SuggestResult","SuggestResult")}} is set to true. ## Syntax @@ -54,5 +54,3 @@ browser.omnibox.onDeleteSuggestion.addListener(logDeletedSuggestion); > [!NOTE] > This API is based on Chromium's [`chrome.omnibox`](https://developer.chrome.com/docs/extensions/reference/api/omnibox) API. -> -> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License. diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbrowserinfo/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbrowserinfo/index.md index aa951383c114954..4cc47005c00baa3 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbrowserinfo/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/getbrowserinfo/index.md @@ -52,6 +52,3 @@ gettingInfo.then(gotBrowserInfo); ## Browser compatibility {{Compat}} - -> [!NOTE] -> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License. diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/getframeid/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/getframeid/index.md index b87bd3a538ff0c4..e2ad495a9dc6cab 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/getframeid/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/getframeid/index.md @@ -57,6 +57,3 @@ visit(window); ## Browser compatibility {{Compat}} - -> [!NOTE] -> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License. diff --git a/files/en-us/mozilla/add-ons/webextensions/browser_support_for_javascript_apis/index.md b/files/en-us/mozilla/add-ons/webextensions/browser_support_for_javascript_apis/index.md index a4e1e1a586ddf3d..94558a98729e656 100644 --- a/files/en-us/mozilla/add-ons/webextensions/browser_support_for_javascript_apis/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/browser_support_for_javascript_apis/index.md @@ -8,9 +8,6 @@ page-type: guide {{WebExtAllCompatTables}} -> [!NOTE] -> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License. - ## See also - [Browser compatibility for manifest.json](/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_compatibility_for_manifest.json) From 53c832f09b5f55b2cbe040907bff8abfb7b57f72 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Tue, 31 Dec 2024 01:41:39 +0800 Subject: [PATCH 7/7] WebExt: fix typo in examples (#37348) * Update index.md * Update index.md * Update index.md --- .../add-ons/webextensions/api/browseraction/seticon/index.md | 4 ++-- .../add-ons/webextensions/api/pageaction/seticon/index.md | 4 ++-- .../add-ons/webextensions/api/sidebaraction/seticon/index.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/browseraction/seticon/index.md b/files/en-us/mozilla/add-ons/webextensions/api/browseraction/seticon/index.md index 2e7d602304cce3e..528db7dc16eb48b 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/browseraction/seticon/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/browseraction/seticon/index.md @@ -38,7 +38,7 @@ let settingIcon = browser.browserAction.setIcon( Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.browserAction.setIcon({ imageData: { 16: image16, 32: image32, @@ -55,7 +55,7 @@ let settingIcon = browser.browserAction.setIcon( Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.browserAction.setIcon({ path: { 16: "path/to/image16.jpg", 32: "path/to/image32.jpg", diff --git a/files/en-us/mozilla/add-ons/webextensions/api/pageaction/seticon/index.md b/files/en-us/mozilla/add-ons/webextensions/api/pageaction/seticon/index.md index c1be69c07a2eaca..11e01053be312a1 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/pageaction/seticon/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/pageaction/seticon/index.md @@ -36,7 +36,7 @@ let settingIcon = browser.pageAction.setIcon( Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.pageAction.setIcon({ imageData: { 16: image16, 32: image32, @@ -53,7 +53,7 @@ let settingIcon = browser.pageAction.setIcon( Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.pageAction.setIcon({ path: { 16: "path/to/image16.jpg", 32: "path/to/image32.jpg", diff --git a/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/seticon/index.md b/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/seticon/index.md index 02a6adb07378efd..02a51f72ba741ce 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/seticon/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/sidebaraction/seticon/index.md @@ -48,7 +48,7 @@ let settingIcon = browser.sidebarAction.setIcon( Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.sidebarAction.setIcon({ imageData: { 16: image16, 32: image32, @@ -65,7 +65,7 @@ let settingIcon = browser.sidebarAction.setIcon( Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this: ```js - let settingIcon = browser.action.setIcon({ + let settingIcon = browser.sidebarAction.setIcon({ path: { 16: "path/to/image16.jpg", 32: "path/to/image32.jpg",