From 611b4528a321b0ab346166ec9afdaaaebeb018ab Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Mon, 22 Jul 2024 18:21:45 -0400 Subject: [PATCH] Fix invalid links (#34975) --- .../page_types/page_type_key/index.md | 16 ++++++++-------- files/en-us/mozilla/firefox/releases/4/index.md | 2 +- files/en-us/mozilla/firefox/releases/92/index.md | 2 +- .../en-us/web/api/editcontext_api/guide/index.md | 4 ++-- files/en-us/web/css/css_display/index.md | 2 +- files/en-us/web/css/flex/index.md | 2 +- files/en-us/web/html/attributes/accept/index.md | 4 ++-- files/en-us/web/html/attributes/max/index.md | 2 +- files/en-us/web/html/content_categories/index.md | 2 +- .../html/global_attributes/itemscope/index.md | 2 +- .../errors/regex_invalid_group/index.md | 2 +- .../global_objects/weakmap/weakmap/index.md | 2 +- .../guides/making_pwas_installable/index.md | 2 +- .../corp/index.md | 2 +- files/en-us/web/svg/attribute/u1/index.md | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-) diff --git a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md index 53c3a63b7faef5f..7214d9c20e0f37d 100644 --- a/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md +++ b/files/en-us/mdn/writing_guidelines/page_structures/page_types/page_type_key/index.md @@ -51,7 +51,7 @@ This section lists `page-type` values for pages under [Learn](/en-US/docs/Learn) This section lists `page-type` values for pages under [Web/Accessibility](/en-US/docs/Web/Accessibility). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the [generic page type](#generic_page_types) values. - `aria-role`: an ARIA [role](/en-US/docs/Web/Accessibility/ARIA/Roles), like [`section`](/en-US/docs/Web/Accessibility/ARIA/Roles/section_role). -- `aria-attribute`: an ARIA [attribute](eb/Accessibility/ARIA/Attributes), like [`aria-sort`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort). +- `aria-attribute`: an ARIA [attribute](/en-US/docs/Web/Accessibility/ARIA/Attributes), like [`aria-sort`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort). ### CSS page types @@ -152,13 +152,13 @@ This section lists `page-type` values for pages under [Web/API](/en-US/docs/Web/ This section lists `page-type` values for pages under [WebAssembly/](/en-US/docs/WebAssembly). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the generic page type values. -- `webassembly-function`: a global function, that is a method directly under the `WebAssembly` object that acts as a namespace, like [`WebAssembly.instantiate()`](WebAssembly/JavaScript_interface/instantiate). -- `webassembly-constructor`: a constructor, like [`WebAssembly.Exception()`](WebAssembly/JavaScript_interface/Exception/Exception). -- `webassembly-interface`: a WebAssembly interface, like [`WebAssembly.LinkError`](WebAssembly/JavaScript_interface/LinkError). -- `webassembly-instance-property`: an instance property, like [`WebAssembly.Instance.exports`](WebAssembly/JavaScript_interface/Instance/exports). -- `webassembly-instance-method`: an instance method, like [`WebAssembly.Exception.getArg()`](WebAssembly/JavaScript_interface/Exception/getArg). -- `webassembly-static-method`: a static method, like [`WebAssembly.Module.exports()`](WebAssembly/JavaScript_interface/Module/exports_static). -- `webassembly-instruction`: an instruction, or a set of instructions, like [`Wrap`](WebAssembly/Reference/Numeric/Wrap). +- `webassembly-function`: a global function, that is a method directly under the `WebAssembly` object that acts as a namespace, like [`WebAssembly.instantiate()`](/en-US/docs/WebAssembly/JavaScript_interface/instantiate). +- `webassembly-constructor`: a constructor, like [`WebAssembly.Exception()`](/en-US/docs/WebAssembly/JavaScript_interface/Exception/Exception). +- `webassembly-interface`: a WebAssembly interface, like [`WebAssembly.LinkError`](/en-US/docs/WebAssembly/JavaScript_interface/LinkError). +- `webassembly-instance-property`: an instance property, like [`WebAssembly.Instance.exports`](/en-US/docs/WebAssembly/JavaScript_interface/Instance/exports). +- `webassembly-instance-method`: an instance method, like [`WebAssembly.Exception.getArg()`](/en-US/docs/WebAssembly/JavaScript_interface/Exception/getArg). +- `webassembly-static-method`: a static method, like [`WebAssembly.Module.exports()`](/en-US/docs/WebAssembly/JavaScript_interface/Module/exports_static). +- `webassembly-instruction`: an instruction, or a set of instructions, like [`Wrap`](/en-US/docs/WebAssembly/Reference/Numeric/Wrap). ### WebDriver page types diff --git a/files/en-us/mozilla/firefox/releases/4/index.md b/files/en-us/mozilla/firefox/releases/4/index.md index e8c8b71961f138a..8b2a3afdcef6387 100644 --- a/files/en-us/mozilla/firefox/releases/4/index.md +++ b/files/en-us/mozilla/firefox/releases/4/index.md @@ -403,7 +403,7 @@ Remote XUL is no longer supported; this affects XUL documents being served throu - New `TabPinned` and `TabUnpinned` events are available, allowing you to detect when tabs are pinned and unpinned. - The new `TabAttrModified` event is sent when a tab's `label`, `crop`, `busy`, `image`, or `selected` attributes change. - `` elements now have a `pinned` attribute, letting you determine whether or not a tab is currently pinned. -- The `setDirectionIndicator` class on ` elements hasn't done anything for some time now; now it's not used at all anymore. +- The `setDirectionIndicator` class on `` elements hasn't done anything for some time now; now it's not used at all anymore. - The `` element now has a `chromemargin` attribute that lets you set the margin between chrome and content on each side of a window; you can use this to draw into the title bar, for example. - The `` element now has a `disablechrome` attribute; this is used to hide most of the chrome in a window when it's being used to display in-browser UI, such as `about:addons`. - The `` element now has a `disablefastfind` attribute, which lets you disable the find bar in a window when the content doesn't support it. This is used, for example, by the add-ons panel. diff --git a/files/en-us/mozilla/firefox/releases/92/index.md b/files/en-us/mozilla/firefox/releases/92/index.md index 0c86552b7b09af3..37359d2ab9f2c46 100644 --- a/files/en-us/mozilla/firefox/releases/92/index.md +++ b/files/en-us/mozilla/firefox/releases/92/index.md @@ -47,7 +47,7 @@ No changes #### Media, WebRTC, and Web Audio -- Access to audio output devices, like speakers and headphones, is now protected by the [speaker-selection](speaker-selection) feature policy ([Firefox bug 1577199](https://bugzil.la/1577199)). +- Access to audio output devices, like speakers and headphones, is now protected by the [speaker-selection](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/speaker-selection) feature policy ([Firefox bug 1577199](https://bugzil.la/1577199)). ### WebDriver conformance (Marionette) diff --git a/files/en-us/web/api/editcontext_api/guide/index.md b/files/en-us/web/api/editcontext_api/guide/index.md index bad2b3b78798624..e9ca7438a04be86 100644 --- a/files/en-us/web/api/editcontext_api/guide/index.md +++ b/files/en-us/web/api/editcontext_api/guide/index.md @@ -340,7 +340,7 @@ function updateSelection(start, end) { } ``` -You can see the code for the `fromSelectionToOffsets()` function in the [converter.js](<(https://github.com/mdn/dom-examples/tree/main/edit-context/html-editor/converter.js)>) file. +You can see the code for the `fromSelectionToOffsets()` function in the [converter.js](https://github.com/mdn/dom-examples/tree/main/edit-context/html-editor/converter.js) file. ## Calculating character bounds @@ -374,7 +374,7 @@ editContext.addEventListener("characterboundsupdate", (e) => { }); ``` -You can see the code for the `fromOffsetsToRenderedTokenNodes()` function in the [converter.js](<(https://github.com/mdn/dom-examples/tree/main/edit-context/html-editor/converter.js)>) file. +You can see the code for the `fromOffsetsToRenderedTokenNodes()` function in the [converter.js](https://github.com/mdn/dom-examples/tree/main/edit-context/html-editor/converter.js) file. ## Applying IME composition text formats diff --git a/files/en-us/web/css/css_display/index.md b/files/en-us/web/css/css_display/index.md index b66435c872b9c5c..5a0f58eb0dc8c3c 100644 --- a/files/en-us/web/css/css_display/index.md +++ b/files/en-us/web/css/css_display/index.md @@ -72,4 +72,4 @@ The **CSS display** module defines how the CSS formatting box tree is generated ## See also - [CSS flexible box layout](/en-US/docs/Web/CSS/CSS_flexible_box_layout) module -- [CSS grid layout](Web/CSS/CSS_grid_layout) module +- [CSS grid layout](/en-US/docs/Web/CSS/CSS_grid_layout) module diff --git a/files/en-us/web/css/flex/index.md b/files/en-us/web/css/flex/index.md index 9b8389169bf734a..bb32fe86f15d02d 100644 --- a/files/en-us/web/css/flex/index.md +++ b/files/en-us/web/css/flex/index.md @@ -240,7 +240,7 @@ flexAuto.addEventListener("click", () => { The flex container contains two flex items: -- `flex: auto` has a `flex` value of [`auto`](auto) +- `flex: auto` has a `flex` value of [`auto`](#auto) - `flex: initial` has a `flex` value of [`initial`](#initial) The `flex: initial` item takes up as much space as its width requires, but does not expand to take up any more space. All the remaining space is taken up by `flex: auto`. diff --git a/files/en-us/web/html/attributes/accept/index.md b/files/en-us/web/html/attributes/accept/index.md index 21af05486cbb4a1..c669a0998d0ed0a 100644 --- a/files/en-us/web/html/attributes/accept/index.md +++ b/files/en-us/web/html/attributes/accept/index.md @@ -59,7 +59,7 @@ When set on a file input type, the native file picker that opens up should only {{EmbedLiveSample('Examples', '100%', 200)}} -Note the last example allows you to select multiple images. See the [`multiple`](multiple) attribute for more information. +Note the last example allows you to select multiple images. See the [`multiple`](/en-US/docs/Web/HTML/Element/input#multiple) attribute for more information. ## Unique file type specifiers @@ -107,7 +107,7 @@ This produces the following output: Regardless of the user's device or operating system, the file input provides a button that opens up a file picker dialog that allows the user to choose a file. -Including the [`multiple`](multiple) attribute, as shown above, specifies that multiple files can be chosen at once. The user can choose multiple files from the file picker in any way that their chosen platform allows (e.g. by holding down Shift or Control, and then clicking). If you only want the user to choose a single file per ``, omit the `multiple` attribute. +Including the [`multiple`](/en-US/docs/Web/HTML/Element/input#multiple) attribute, as shown above, specifies that multiple files can be chosen at once. The user can choose multiple files from the file picker in any way that their chosen platform allows (e.g. by holding down Shift or Control, and then clicking). If you only want the user to choose a single file per ``, omit the `multiple` attribute. ### Limiting accepted file types diff --git a/files/en-us/web/html/attributes/max/index.md b/files/en-us/web/html/attributes/max/index.md index 7b3c8bb9c2d2a36..45ea89b3fcfa02c 100644 --- a/files/en-us/web/html/attributes/max/index.md +++ b/files/en-us/web/html/attributes/max/index.md @@ -10,7 +10,7 @@ browser-compat: {{HTMLSidebar}} -The **`max`** attribute defines the maximum value that is acceptable and valid for the input containing the attribute. If the [`value`](/en-US/docs/Web/HTML/Element/input#value) of the element is greater than this, the element fails [validation](/en-US/docs/Learn/Forms/Form_validation). This value must be greater than or equal to the value of the [`min`](min) attribute. If the `max` attribute is present but is not specified or is invalid, no `max` value is applied. If the `max` attribute is valid and a non-empty value is greater than the maximum allowed by the `max` attribute, constraint validation will prevent form submission. +The **`max`** attribute defines the maximum value that is acceptable and valid for the input containing the attribute. If the [`value`](/en-US/docs/Web/HTML/Element/input#value) of the element is greater than this, the element fails [validation](/en-US/docs/Learn/Forms/Form_validation). This value must be greater than or equal to the value of the [`min`](/en-US/docs/Web/HTML/Attributes/min) attribute. If the `max` attribute is present but is not specified or is invalid, no `max` value is applied. If the `max` attribute is valid and a non-empty value is greater than the maximum allowed by the `max` attribute, constraint validation will prevent form submission. Valid for the numeric input types, including the {{HTMLElement("input/date", "date")}}, {{HTMLElement("input/month", "month")}}, {{HTMLElement("input/week", "week")}}, {{HTMLElement("input/time", "time")}}, {{HTMLElement("input/datetime-local", "datetime-local")}}, {{HTMLElement("input/number", "number")}} and {{HTMLElement("input/range", "range")}} types, and both the {{htmlelement('progress')}} and {{htmlelement('meter')}} elements, the `max` attribute is a number that specifies the most positive value a form control to be considered valid. diff --git a/files/en-us/web/html/content_categories/index.md b/files/en-us/web/html/content_categories/index.md index 2f90d527f318998..f7b34c69d3d1609 100644 --- a/files/en-us/web/html/content_categories/index.md +++ b/files/en-us/web/html/content_categories/index.md @@ -296,7 +296,7 @@ The palpable elements are: - {{HtmlElement("main")}} - {{HtmlElement("map")}} - {{HtmlElement("mark")}} -- {{MathMLElement("math")}} from [MathML](/en-us/doc/Web/MathML) +- {{MathMLElement("math")}} from [MathML](/en-US/docs/Web/MathML) - {{HtmlElement("meter")}} - {{HtmlElement("nav")}} - {{HtmlElement("object")}} diff --git a/files/en-us/web/html/global_attributes/itemscope/index.md b/files/en-us/web/html/global_attributes/itemscope/index.md index bb521ee720c683d..6fb4190dadf468c 100644 --- a/files/en-us/web/html/global_attributes/itemscope/index.md +++ b/files/en-us/web/html/global_attributes/itemscope/index.md @@ -74,7 +74,7 @@ The following example specifies the `itemtype` as "http\://schema.org/Movie", an ### Representing structured data for a recipe -There are four `itemscope` attributes in the following example. Each `itemscope` attribute sets the scope of its corresponding `itemtype` attribute. The `itemtype`s, `Recipe`, `AggregateRating`, and `NutritionInformation` in the following example are part of the [schema.org](www.schema.org) structured data for a recipe, as specified by the first `itemtype`, `http://schema.org/Recipe`. +There are four `itemscope` attributes in the following example. Each `itemscope` attribute sets the scope of its corresponding `itemtype` attribute. The `itemtype`s, `Recipe`, `AggregateRating`, and `NutritionInformation` in the following example are part of the [schema.org](https://www.schema.org) structured data for a recipe, as specified by the first `itemtype`, `http://schema.org/Recipe`. diff --git a/files/en-us/web/javascript/reference/errors/regex_invalid_group/index.md b/files/en-us/web/javascript/reference/errors/regex_invalid_group/index.md index 90c2fb744709fef..a09b4ec8943499c 100644 --- a/files/en-us/web/javascript/reference/errors/regex_invalid_group/index.md +++ b/files/en-us/web/javascript/reference/errors/regex_invalid_group/index.md @@ -8,7 +8,7 @@ page-type: javascript-error The JavaScript exception "invalid regexp group" occurs when the sequence `(?` does not start a valid group syntax. Recognized group syntaxes that start with `(?` include: -- `(?:` for [non-capturing groups](//en-US/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group) +- `(?:` for [non-capturing groups](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group) - `(?=` for [positive lookahead](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookahead_assertion) - `(?!` for negative lookahead - `(?<=` for [positive lookbehind](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion) diff --git a/files/en-us/web/javascript/reference/global_objects/weakmap/weakmap/index.md b/files/en-us/web/javascript/reference/global_objects/weakmap/weakmap/index.md index 8a502064460a8bb..e28fcffd5d8e2c4 100644 --- a/files/en-us/web/javascript/reference/global_objects/weakmap/weakmap/index.md +++ b/files/en-us/web/javascript/reference/global_objects/weakmap/weakmap/index.md @@ -21,7 +21,7 @@ new WeakMap(iterable) ### Parameters - `iterable` - - : An [`Array`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) or other [iterable object](<(/en-US/docs/Web/JavaScript/Reference/Iteration_protocols)>) that produces a two-element array-like object whose first element is a value that will be used as a `WeakMap` key and whose second element is the value to associate with that key. Each key-value pair will be added to the new `WeakMap`. null is treated as undefined. + - : An [`Array`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) or other [iterable object](/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) that produces a two-element array-like object whose first element is a value that will be used as a `WeakMap` key and whose second element is the value to associate with that key. Each key-value pair will be added to the new `WeakMap`. null is treated as undefined. ## Examples diff --git a/files/en-us/web/progressive_web_apps/guides/making_pwas_installable/index.md b/files/en-us/web/progressive_web_apps/guides/making_pwas_installable/index.md index d3b9014b3d967b4..2c0043449ad49ac 100644 --- a/files/en-us/web/progressive_web_apps/guides/making_pwas_installable/index.md +++ b/files/en-us/web/progressive_web_apps/guides/making_pwas_installable/index.md @@ -22,7 +22,7 @@ We'll discuss each of these features in this guide. First, though, we'll discuss For a web app to be promoted for installation by a supporting browser, it needs to meet some technical requirements. We can consider these the minimum requirements for a web app to be a PWA. > **Note:** While not a requirement for a PWA to be installable, many PWAs use [service workers](/en-US/docs/Web/API/Service_Worker_API) to provide an offline experience. -> See the [CycleTracker: Service workers](en-us/web/progressive_web_apps/tutorials/cycletracker/service_workers/index.md) tutorial for more information. +> See the [CycleTracker: Service workers](/en-US/docs/Web/Progressive_web_apps/Tutorials/CycleTracker/Service_workers) tutorial for more information. ### The web app manifest diff --git a/files/en-us/web/security/practical_implementation_guides/corp/index.md b/files/en-us/web/security/practical_implementation_guides/corp/index.md index 228308752070fbb..ba004cd001d5c3c 100644 --- a/files/en-us/web/security/practical_implementation_guides/corp/index.md +++ b/files/en-us/web/security/practical_implementation_guides/corp/index.md @@ -48,7 +48,7 @@ This also permits such resources to be embedded. ## See also -- [Consider deploying Cross-Origin Resource Policy](resourcepolicy.fyi) +- [Consider deploying Cross-Origin Resource Policy](https://resourcepolicy.fyi) - [XS-Leaks Wiki](https://xsleaks.dev/) - [`Access-Control-Allow-Origin`](/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin) - [`Cross-Origin-Embedder-Policy`](/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy) diff --git a/files/en-us/web/svg/attribute/u1/index.md b/files/en-us/web/svg/attribute/u1/index.md index ec0c62c70d1846e..5423117f443d5cd 100644 --- a/files/en-us/web/svg/attribute/u1/index.md +++ b/files/en-us/web/svg/attribute/u1/index.md @@ -32,7 +32,7 @@ You can use this attribute with the following SVG elements: |<urange>]#