From 446369d741332bc1fde62ca251015654e540e04d 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. --- html-aam/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/html-aam/index.html b/html-aam/index.html index 0ddd737f1..8e33191c9 100644 --- a/html-aam/index.html +++ b/html-aam/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 862a356eef41f57596240c8ee0e4f2abd731edd9 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 --- html-aam/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index 3f6f4660d..f23325f63 100644 --- a/html-aam/index.html +++ b/html-aam/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 95e89309bb3738898797dcfc43aea13f7032fa50 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 --- html-aam/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-aam/index.html b/html-aam/index.html index 12fe12d98..2cf613532 100644 --- a/html-aam/index.html +++ b/html-aam/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