From e31cb5978e9f3c731c49db9ed0a15795b870e141 Mon Sep 17 00:00:00 2001 From: krkk Date: Sat, 14 Oct 2023 02:23:21 +0200 Subject: [PATCH] Update implicit ARIA roles according to spec changes (#29546) * Set implicit role mappings to `generic` Implements changes from https://github.com/w3c/html-aria/pull/425 * Set address' element implicit role to `group` Implements change from https://github.com/w3c/html-aria/commit/ba30b83bad9bc510eeaa905664b27f42a6cc7093 * Assign ARIA 1.2 roles to elements Implements changes from https://github.com/w3c/html-aria/pull/392 * Make `
` with inaccessible name's implicit role to be `generic` See https://github.com/w3c/html-aria/pull/475 * Set implicit ARIA mapping for element to `deletion` See https://github.com/w3c/html-aria/pull/469 * Set `form` as the only implicit ARIA role for the form element See https://github.com/w3c/html-aria/pull/402 --- files/en-us/web/html/element/a/index.md | 4 +--- files/en-us/web/html/element/address/index.md | 6 ++++-- files/en-us/web/html/element/area/index.md | 3 ++- files/en-us/web/html/element/b/index.md | 6 ++++-- files/en-us/web/html/element/bdi/index.md | 6 ++++-- files/en-us/web/html/element/bdo/index.md | 6 ++++-- files/en-us/web/html/element/blockquote/index.md | 6 ++++-- files/en-us/web/html/element/caption/index.md | 5 ++++- files/en-us/web/html/element/code/index.md | 5 +++-- files/en-us/web/html/element/data/index.md | 6 ++++-- files/en-us/web/html/element/dd/index.md | 6 +++++- files/en-us/web/html/element/del/index.md | 5 +++-- files/en-us/web/html/element/div/index.md | 6 ++++-- files/en-us/web/html/element/dt/index.md | 6 +++++- files/en-us/web/html/element/em/index.md | 5 +++-- files/en-us/web/html/element/footer/index.md | 2 +- files/en-us/web/html/element/form/index.md | 4 +--- files/en-us/web/html/element/header/index.md | 4 ++-- files/en-us/web/html/element/hgroup/index.md | 6 ++++-- files/en-us/web/html/element/i/index.md | 6 ++++-- files/en-us/web/html/element/ins/index.md | 5 +++-- files/en-us/web/html/element/meter/index.md | 5 +++-- files/en-us/web/html/element/pre/index.md | 6 ++++-- files/en-us/web/html/element/q/index.md | 6 ++++-- files/en-us/web/html/element/s/index.md | 5 +++-- files/en-us/web/html/element/samp/index.md | 6 ++++-- files/en-us/web/html/element/section/index.md | 6 ++++-- files/en-us/web/html/element/small/index.md | 6 ++++-- files/en-us/web/html/element/strong/index.md | 5 +++-- files/en-us/web/html/element/sub/index.md | 5 +++-- files/en-us/web/html/element/sup/index.md | 5 +++-- files/en-us/web/html/element/time/index.md | 5 +++-- files/en-us/web/html/element/u/index.md | 6 ++++-- 33 files changed, 111 insertions(+), 63 deletions(-) diff --git a/files/en-us/web/html/element/a/index.md b/files/en-us/web/html/element/a/index.md index 0444e0fe16deefa..0ca02a760f7f82d 100644 --- a/files/en-us/web/html/element/a/index.md +++ b/files/en-us/web/html/element/a/index.md @@ -478,9 +478,7 @@ Spacing may be created using CSS properties like {{CSSxRef("margin")}}. link when href attribute is present, otherwise - no corresponding role + generic diff --git a/files/en-us/web/html/element/address/index.md b/files/en-us/web/html/element/address/index.md index 98c3009e7c42d4f..79a0b6d9566052a 100644 --- a/files/en-us/web/html/element/address/index.md +++ b/files/en-us/web/html/element/address/index.md @@ -102,8 +102,10 @@ Although it renders text with the same default styling as the {{HTMLElement("i") Implicit ARIA role - No corresponding rolegroup diff --git a/files/en-us/web/html/element/area/index.md b/files/en-us/web/html/element/area/index.md index e54e2c7b97e705d..125b39a1139fabf 100644 --- a/files/en-us/web/html/element/area/index.md +++ b/files/en-us/web/html/element/area/index.md @@ -151,7 +151,8 @@ This element's attributes include the [global attributes](/en-US/docs/Web/HTML/G Implicit ARIA role - link when href attribute is present, otherwise no corresponding role + link when href attribute is present, otherwise + generic diff --git a/files/en-us/web/html/element/b/index.md b/files/en-us/web/html/element/b/index.md index b30f5c0c2ad0564..eef8d10286869c9 100644 --- a/files/en-us/web/html/element/b/index.md +++ b/files/en-us/web/html/element/b/index.md @@ -82,8 +82,10 @@ Keywords are displayed with the default style of the Implicit ARIA role - No corresponding rolegeneric diff --git a/files/en-us/web/html/element/bdi/index.md b/files/en-us/web/html/element/bdi/index.md index 8b00ea95d1eee6d..ebdc8632ae57639 100644 --- a/files/en-us/web/html/element/bdi/index.md +++ b/files/en-us/web/html/element/bdi/index.md @@ -156,8 +156,10 @@ body { Implicit ARIA role - No corresponding rolegeneric diff --git a/files/en-us/web/html/element/bdo/index.md b/files/en-us/web/html/element/bdo/index.md index 9c61c13c32edb61..1ecea2078cc9056 100644 --- a/files/en-us/web/html/element/bdo/index.md +++ b/files/en-us/web/html/element/bdo/index.md @@ -83,8 +83,10 @@ The HTML 4 specification did not specify events for this element; they were adde Implicit ARIA role - No corresponding rolegeneric diff --git a/files/en-us/web/html/element/blockquote/index.md b/files/en-us/web/html/element/blockquote/index.md index 544ee0a8f4429de..831594c29b9951f 100644 --- a/files/en-us/web/html/element/blockquote/index.md +++ b/files/en-us/web/html/element/blockquote/index.md @@ -86,8 +86,10 @@ This example demonstrates the use of the `
` element to quote a passa Implicit ARIA role - No corresponding role + blockquote diff --git a/files/en-us/web/html/element/caption/index.md b/files/en-us/web/html/element/caption/index.md index c4ee853cdf8072f..c600f16e8098430 100644 --- a/files/en-us/web/html/element/caption/index.md +++ b/files/en-us/web/html/element/caption/index.md @@ -119,7 +119,10 @@ td { Implicit ARIA role - caption + caption diff --git a/files/en-us/web/html/element/code/index.md b/files/en-us/web/html/element/code/index.md index 4a28eb1e11e8216..7013a8405dbf9eb 100644 --- a/files/en-us/web/html/element/code/index.md +++ b/files/en-us/web/html/element/code/index.md @@ -79,8 +79,9 @@ A CSS rule can be defined for the `code` selector to override the browser's defa Implicit ARIA role - No corresponding rolecode diff --git a/files/en-us/web/html/element/data/index.md b/files/en-us/web/html/element/data/index.md index 9d95ff4271b70ec..5e1fdfc1a0ac871 100644 --- a/files/en-us/web/html/element/data/index.md +++ b/files/en-us/web/html/element/data/index.md @@ -52,8 +52,10 @@ The **``** [HTML](/en-US/docs/Web/HTML) element links a given piece of con Implicit ARIA role - No corresponding rolegeneric diff --git a/files/en-us/web/html/element/dd/index.md b/files/en-us/web/html/element/dd/index.md index 8e3ccd50315ec3f..791c3cba819f07e 100644 --- a/files/en-us/web/html/element/dd/index.md +++ b/files/en-us/web/html/element/dd/index.md @@ -63,7 +63,11 @@ For examples, see the [examples provided for the `
` element](/en-US/docs/Web Implicit ARIA role - definition + + No corresponding role + Permitted ARIA roles diff --git a/files/en-us/web/html/element/del/index.md b/files/en-us/web/html/element/del/index.md index a1c4598caeef789..8dd333b6cca3ad2 100644 --- a/files/en-us/web/html/element/del/index.md +++ b/files/en-us/web/html/element/del/index.md @@ -55,8 +55,9 @@ This element is often (but need not be) rendered by applying a strike-through st Implicit ARIA role - No corresponding roledeletion diff --git a/files/en-us/web/html/element/div/index.md b/files/en-us/web/html/element/div/index.md index 37e8f0e24d2ab75..8a24dcf190994d4 100644 --- a/files/en-us/web/html/element/div/index.md +++ b/files/en-us/web/html/element/div/index.md @@ -117,8 +117,10 @@ This example creates a shadowed box by applying a style to the `
` using CSS Implicit ARIA role - No corresponding rolegeneric diff --git a/files/en-us/web/html/element/dt/index.md b/files/en-us/web/html/element/dt/index.md index cdb7728219c820e..f31aaf1d152a1e6 100644 --- a/files/en-us/web/html/element/dt/index.md +++ b/files/en-us/web/html/element/dt/index.md @@ -65,7 +65,11 @@ For examples, see the [examples provided for the `
` element](/en-US/docs/Web Implicit ARIA role - term + + No corresponding role + Permitted ARIA roles diff --git a/files/en-us/web/html/element/em/index.md b/files/en-us/web/html/element/em/index.md index 025dbdd0416a60d..ac61aa243f31591 100644 --- a/files/en-us/web/html/element/em/index.md +++ b/files/en-us/web/html/element/em/index.md @@ -91,8 +91,9 @@ In this example, the `` element is used to highlight an implicit or explicit Implicit ARIA role - No corresponding roleemphasis diff --git a/files/en-us/web/html/element/footer/index.md b/files/en-us/web/html/element/footer/index.md index e5a4b1978b96291..09a60912ae3c360 100644 --- a/files/en-us/web/html/element/footer/index.md +++ b/files/en-us/web/html/element/footer/index.md @@ -46,7 +46,7 @@ The **`