From c060ffedab0377a5f696a07ddb6e7c411a70e8b7 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 3 May 2022 20:09:54 -0400 Subject: [PATCH 1/3] handling fallback content for the meter element resolves #27 this PR looks to treat the fallback content (the subtree) of the meter element as `aria-valuetext`. However, an author updates the value of the meter element, but does not update the subtree/fallback content, then the `value` needs to instead take preference over the fallback content, as the fallback contnet would no longer represent the true value of the `meter` element. --- index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 0ddd737f..8e33191c 100644 --- a/index.html +++ b/index.html @@ -2338,7 +2338,17 @@

HTML Element Role Mappings

Use WAI-ARIA mapping
Use WAI-ARIA mapping
Use WAI-ARIA mapping
- + +
+ If specified, the default subtree of a `meter` element maps to the + `aria-valuetext`. +
+

+ If the `value` of the `meter` element updates, but the fallback content of + the `meter` does not, then User Agents MUST ignore the fallback content as + it likely no longer represents the current value of the element. +

+ `nav` From 8ec32598a00c8692e39f376d0fd6381f8d58a872 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 1 Mar 2023 08:30:26 -0500 Subject: [PATCH 2/3] Update index.html Co-authored-by: James Craig --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index 3f6f4660..f23325f6 100644 --- a/index.html +++ b/index.html @@ -2320,8 +2320,7 @@

HTML Element Role Mappings

- If specified, the default subtree of a `meter` element maps to the - `aria-valuetext`. + If the `meter` element includes [text content? innerText? computed `nameFrom:content`], user agents SHOULD expose that as the value of the `aria-valuetext` mapping.

If the `value` of the `meter` element updates, but the fallback content of From aa6f79d6a3f4a199d04921dd9245fc1a827ba862 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 18 Oct 2023 08:30:18 -0400 Subject: [PATCH 3/3] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 12fe12d9..2cf61353 100644 --- a/index.html +++ b/index.html @@ -2405,7 +2405,7 @@

HTML Element Role Mappings

- If the `meter` element includes [text content? innerText? computed `nameFrom:content`], user agents SHOULD expose that as the value of the `aria-valuetext` mapping. + If the `meter` element's subtree contains text content, user agents SHOULD expose this content, along with the element's initial value, by exposing the fallback content via the `aria-valuetext` mapping.

If the `value` of the `meter` element updates, but the fallback content of