From 198ea61f2850ad8b57af7ccc0d74fdb47182f6eb Mon Sep 17 00:00:00 2001 From: LB Date: Fri, 18 Oct 2024 15:49:32 +1000 Subject: [PATCH] Update all WCAG URLs to the equivalent 2.2 location Fixes #1015 Ensure all URLs are consistent (without trailing HTML) as this is the canonical URL --- docs/rules/accessible-emoji.md | 2 +- docs/rules/alt-text.md | 2 +- docs/rules/anchor-has-content.md | 4 ++-- docs/rules/anchor-is-valid.md | 2 +- docs/rules/aria-props.md | 2 +- docs/rules/aria-proptypes.md | 2 +- docs/rules/aria-role.md | 2 +- docs/rules/aria-unsupported-elements.md | 2 +- docs/rules/autocomplete-valid.md | 2 +- docs/rules/click-events-have-key-events.md | 2 +- docs/rules/control-has-associated-label.md | 6 +++--- docs/rules/html-has-lang.md | 2 +- docs/rules/iframe-has-title.md | 4 ++-- docs/rules/interactive-supports-focus.md | 2 +- docs/rules/label-has-associated-control.md | 6 +++--- docs/rules/label-has-for.md | 6 +++--- docs/rules/lang.md | 2 +- docs/rules/media-has-caption.md | 4 ++-- docs/rules/mouse-events-have-key-events.md | 2 +- docs/rules/no-distracting-elements.md | 2 +- docs/rules/no-interactive-element-to-noninteractive-role.md | 2 +- docs/rules/no-noninteractive-element-interactions.md | 2 +- docs/rules/no-noninteractive-element-to-interactive-role.md | 2 +- docs/rules/no-noninteractive-tabindex.md | 2 +- docs/rules/no-onchange.md | 2 +- docs/rules/no-static-element-interactions.md | 2 +- docs/rules/role-has-required-aria-props.md | 2 +- docs/rules/role-supports-aria-props.md | 2 +- docs/rules/scope.md | 4 ++-- docs/rules/tabindex-no-positive.md | 2 +- 30 files changed, 40 insertions(+), 40 deletions(-) diff --git a/docs/rules/accessible-emoji.md b/docs/rules/accessible-emoji.md index 73db0fe51..7803df432 100644 --- a/docs/rules/accessible-emoji.md +++ b/docs/rules/accessible-emoji.md @@ -24,7 +24,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 1.1.1](https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html) +- [WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content) ### Resources - [LĂ©onie Watson, Accessible Emoji](https://tink.uk/accessible-emoji/) diff --git a/docs/rules/alt-text.md b/docs/rules/alt-text.md index 40c90c779..bd87741f0 100644 --- a/docs/rules/alt-text.md +++ b/docs/rules/alt-text.md @@ -158,7 +158,7 @@ function Foo(props) { ## Accessibility guidelines -- [WCAG 1.1.1](https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html) +- [WCAG 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content) ### Resources diff --git a/docs/rules/anchor-has-content.md b/docs/rules/anchor-has-content.md index 03082fbb9..c125122b4 100644 --- a/docs/rules/anchor-has-content.md +++ b/docs/rules/anchor-has-content.md @@ -57,8 +57,8 @@ return ( ``` ## Accessibility guidelines -- [WCAG 2.4.4](https://www.w3.org/WAI/WCAG21/Understanding/link-purpose-in-context) -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 2.4.4](https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [axe-core, link-name](https://dequeuniversity.com/rules/axe/3.2/link-name) diff --git a/docs/rules/anchor-is-valid.md b/docs/rules/anchor-is-valid.md index 77b1965c9..dfa711c88 100644 --- a/docs/rules/anchor-is-valid.md +++ b/docs/rules/anchor-is-valid.md @@ -261,7 +261,7 @@ Invalid `href` attribute: ## Accessibility guidelines -- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard) +- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard) ### Resources diff --git a/docs/rules/aria-props.md b/docs/rules/aria-props.md index 2ed051a80..ccbcc11d3 100644 --- a/docs/rules/aria-props.md +++ b/docs/rules/aria-props.md @@ -26,4 +26,4 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) diff --git a/docs/rules/aria-proptypes.md b/docs/rules/aria-proptypes.md index c4e596a9a..bb916e58a 100644 --- a/docs/rules/aria-proptypes.md +++ b/docs/rules/aria-proptypes.md @@ -23,7 +23,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [ARIA Spec, States and Properties](https://www.w3.org/TR/wai-aria/#states_and_properties) diff --git a/docs/rules/aria-role.md b/docs/rules/aria-role.md index b9646dc27..aeed321dc 100644 --- a/docs/rules/aria-role.md +++ b/docs/rules/aria-role.md @@ -43,7 +43,7 @@ For the `ignoreNonDOM` option, this determines if developer created components a ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [Chrome Audit Rules, AX_ARIA_01](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_01) diff --git a/docs/rules/aria-unsupported-elements.md b/docs/rules/aria-unsupported-elements.md index a759f0088..40416b2fe 100644 --- a/docs/rules/aria-unsupported-elements.md +++ b/docs/rules/aria-unsupported-elements.md @@ -23,7 +23,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [Chrome Audit Rules, AX_ARIA_12](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_12) diff --git a/docs/rules/autocomplete-valid.md b/docs/rules/autocomplete-valid.md index 9e29af759..65f53d4c1 100644 --- a/docs/rules/autocomplete-valid.md +++ b/docs/rules/autocomplete-valid.md @@ -42,7 +42,7 @@ This rule takes one optional object argument of type object: ``` ## Accessibility guidelines -- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose) +- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG22/Understanding/identify-input-purpose) ### Resources - [axe-core, autocomplete-valid](https://dequeuniversity.com/rules/axe/3.2/autocomplete-valid) diff --git a/docs/rules/click-events-have-key-events.md b/docs/rules/click-events-have-key-events.md index 613a099dd..5481a63e7 100644 --- a/docs/rules/click-events-have-key-events.md +++ b/docs/rules/click-events-have-key-events.md @@ -25,4 +25,4 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard) +- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard) diff --git a/docs/rules/control-has-associated-label.md b/docs/rules/control-has-associated-label.md index d28d1d807..59b503aa4 100644 --- a/docs/rules/control-has-associated-label.md +++ b/docs/rules/control-has-associated-label.md @@ -108,6 +108,6 @@ This rule takes one optional object argument of type object: ``` ## Accessibility guidelines -- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships) -- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions) -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) +- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) diff --git a/docs/rules/html-has-lang.md b/docs/rules/html-has-lang.md index dee57eb32..4f8fd9d6c 100644 --- a/docs/rules/html-has-lang.md +++ b/docs/rules/html-has-lang.md @@ -24,7 +24,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 3.1.1](https://www.w3.org/WAI/WCAG21/Understanding/language-of-page) +- [WCAG 3.1.1](https://www.w3.org/WAI/WCAG22/Understanding/language-of-page) ### Resources - [axe-core, html-has-lang](https://dequeuniversity.com/rules/axe/3.2/html-has-lang) diff --git a/docs/rules/iframe-has-title.md b/docs/rules/iframe-has-title.md index 0015944dd..60bdad701 100644 --- a/docs/rules/iframe-has-title.md +++ b/docs/rules/iframe-has-title.md @@ -30,8 +30,8 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 2.4.1](https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks) -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 2.4.1](https://www.w3.org/WAI/WCAG22/Understanding/bypass-blocks) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [axe-core, frame-title](https://dequeuniversity.com/rules/axe/3.2/frame-title) diff --git a/docs/rules/interactive-supports-focus.md b/docs/rules/interactive-supports-focus.md index 2e896b0e3..4bd65255d 100644 --- a/docs/rules/interactive-supports-focus.md +++ b/docs/rules/interactive-supports-focus.md @@ -146,7 +146,7 @@ The list of possible values includes: ## Accessibility guidelines -- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard) +- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard) ### Resources diff --git a/docs/rules/label-has-associated-control.md b/docs/rules/label-has-associated-control.md index 5a3efa48d..3ebd5cbb2 100644 --- a/docs/rules/label-has-associated-control.md +++ b/docs/rules/label-has-associated-control.md @@ -143,6 +143,6 @@ function Foo(props) { ``` ## Accessibility guidelines -- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships) -- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions) -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) +- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) diff --git a/docs/rules/label-has-for.md b/docs/rules/label-has-for.md index 87e6f5332..bcd0de085 100644 --- a/docs/rules/label-has-for.md +++ b/docs/rules/label-has-for.md @@ -125,6 +125,6 @@ function Foo(props) { ## Accessibility guidelines -- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships) -- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG21/Understanding/labels-or-instructions) -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) +- [WCAG 3.3.2](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) diff --git a/docs/rules/lang.md b/docs/rules/lang.md index ace4b2356..e2c190450 100644 --- a/docs/rules/lang.md +++ b/docs/rules/lang.md @@ -23,7 +23,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 3.1.1](https://www.w3.org/WAI/WCAG21/Understanding/language-of-page) +- [WCAG 3.1.1](https://www.w3.org/WAI/WCAG22/Understanding/language-of-page) ### Resources - [axe-core, valid-lang](https://dequeuniversity.com/rules/axe/3.2/valid-lang) diff --git a/docs/rules/media-has-caption.md b/docs/rules/media-has-caption.md index be29a7e5c..370c7a841 100644 --- a/docs/rules/media-has-caption.md +++ b/docs/rules/media-has-caption.md @@ -40,8 +40,8 @@ For the `audio`, `video`, and `track` options, these strings determine which JSX ``` ## Accessibility guidelines -- [WCAG 1.2.2](https://www.w3.org/WAI/WCAG21/Understanding/captions-prerecorded.html) -- [WCAG 1.2.3](https://www.w3.org/WAI/WCAG21/Understanding/audio-description-or-media-alternative-prerecorded.html) +- [WCAG 1.2.2](https://www.w3.org/WAI/WCAG22/Understanding/captions-prerecorded) +- [WCAG 1.2.3](https://www.w3.org/WAI/WCAG22/Understanding/audio-description-or-media-alternative-prerecorded) ### Resources - [axe-core, audio-caption](https://dequeuniversity.com/rules/axe/2.1/audio-caption) diff --git a/docs/rules/mouse-events-have-key-events.md b/docs/rules/mouse-events-have-key-events.md index a8e6ce497..da14f9b3f 100644 --- a/docs/rules/mouse-events-have-key-events.md +++ b/docs/rules/mouse-events-have-key-events.md @@ -55,4 +55,4 @@ In example 3 and 4 below, even if otherProps contains onBlur and/or onFocus, thi ``` ## Accessibility guidelines -- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard) +- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard) diff --git a/docs/rules/no-distracting-elements.md b/docs/rules/no-distracting-elements.md index 9e986bd6b..0cb9cc2a4 100644 --- a/docs/rules/no-distracting-elements.md +++ b/docs/rules/no-distracting-elements.md @@ -34,7 +34,7 @@ For the `elements` option, these strings determine which JSX elements should be ``` ## Accessibility guidelines -- [WCAG 2.2.2](https://www.w3.org/WAI/WCAG21/Understanding/pause-stop-hide) +- [WCAG 2.2.2](https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide) ### Resources - [axe-core, marquee](https://dequeuniversity.com/rules/axe/3.2/marquee) diff --git a/docs/rules/no-interactive-element-to-noninteractive-role.md b/docs/rules/no-interactive-element-to-noninteractive-role.md index c3cadae67..c0a9e6af2 100644 --- a/docs/rules/no-interactive-element-to-noninteractive-role.md +++ b/docs/rules/no-interactive-element-to-noninteractive-role.md @@ -61,7 +61,7 @@ Under the recommended options, the following code is valid. It would be invalid ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources diff --git a/docs/rules/no-noninteractive-element-interactions.md b/docs/rules/no-noninteractive-element-interactions.md index c14f298f8..f77053094 100644 --- a/docs/rules/no-noninteractive-element-interactions.md +++ b/docs/rules/no-noninteractive-element-interactions.md @@ -135,7 +135,7 @@ Adjust the list of handler prop names in the handlers array to increase or decre ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources diff --git a/docs/rules/no-noninteractive-element-to-interactive-role.md b/docs/rules/no-noninteractive-element-to-interactive-role.md index c4d5fe81b..829659420 100644 --- a/docs/rules/no-noninteractive-element-to-interactive-role.md +++ b/docs/rules/no-noninteractive-element-to-interactive-role.md @@ -66,7 +66,7 @@ Under the recommended options, the following code is valid. It would be invalid ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources diff --git a/docs/rules/no-noninteractive-tabindex.md b/docs/rules/no-noninteractive-tabindex.md index 6c900621a..0d69ec093 100644 --- a/docs/rules/no-noninteractive-tabindex.md +++ b/docs/rules/no-noninteractive-tabindex.md @@ -108,7 +108,7 @@ The `allowExpressionValues` option determines whether the `role` attribute is al ## Accessibility guidelines -- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG21/Understanding/keyboard) +- [WCAG 2.1.1](https://www.w3.org/WAI/WCAG22/Understanding/keyboard) ### Resources diff --git a/docs/rules/no-onchange.md b/docs/rules/no-onchange.md index bc318f717..0e87e9bd0 100644 --- a/docs/rules/no-onchange.md +++ b/docs/rules/no-onchange.md @@ -29,7 +29,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 3.2.2](https://www.w3.org/WAI/WCAG21/Understanding/on-input) +- [WCAG 3.2.2](https://www.w3.org/WAI/WCAG22/Understanding/on-input) ### Resources - [onChange Event Accessibility Issues](https://web.archive.org/web/20191207202425/http://cita.disability.uiuc.edu/html-best-practices/auto/onchange.php) diff --git a/docs/rules/no-static-element-interactions.md b/docs/rules/no-static-element-interactions.md index 147ea1b2a..167306dd6 100644 --- a/docs/rules/no-static-element-interactions.md +++ b/docs/rules/no-static-element-interactions.md @@ -104,7 +104,7 @@ The `allowExpressionValues` option determines whether the `role` attribute is al ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources diff --git a/docs/rules/role-has-required-aria-props.md b/docs/rules/role-has-required-aria-props.md index 2d153f0b1..056789656 100644 --- a/docs/rules/role-has-required-aria-props.md +++ b/docs/rules/role-has-required-aria-props.md @@ -24,7 +24,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [ARIA Spec, Roles](https://www.w3.org/TR/wai-aria/#roles) diff --git a/docs/rules/role-supports-aria-props.md b/docs/rules/role-supports-aria-props.md index 53c08ec45..639da7780 100644 --- a/docs/rules/role-supports-aria-props.md +++ b/docs/rules/role-supports-aria-props.md @@ -32,7 +32,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value) +- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG22/Understanding/name-role-value) ### Resources - [ARIA Spec, States and Properties](https://www.w3.org/TR/wai-aria/#states_and_properties) diff --git a/docs/rules/scope.md b/docs/rules/scope.md index 89df1bb65..3842699a8 100644 --- a/docs/rules/scope.md +++ b/docs/rules/scope.md @@ -23,8 +23,8 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships) -- [WCAG 4.1.1](https://www.w3.org/WAI/WCAG21/Understanding/parsing) +- [WCAG 1.3.1](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) +- [WCAG 4.1.1](https://www.w3.org/WAI/WCAG22/Understanding/parsing) ### Resources - [axe-core, scope-attr-valid](https://dequeuniversity.com/rules/axe/3.5/scope-attr-valid) diff --git a/docs/rules/tabindex-no-positive.md b/docs/rules/tabindex-no-positive.md index 93c387c2d..7cffdcafb 100644 --- a/docs/rules/tabindex-no-positive.md +++ b/docs/rules/tabindex-no-positive.md @@ -26,7 +26,7 @@ This rule takes no arguments. ``` ## Accessibility guidelines -- [WCAG 2.4.3](https://www.w3.org/WAI/WCAG21/Understanding/focus-order) +- [WCAG 2.4.3](https://www.w3.org/WAI/WCAG22/Understanding/focus-order) ### Resources - [Chrome Audit Rules, AX_FOCUS_03](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_focus_03)