Edit ISSUE-1048: roledescription usage should not be limited to elements with defined ARIA roles





Raised By:


Add notes (no markup allowed, URIs get automatically hyperlinked):

No related emails.

Related notes:

Rich pointed out this text exists in the spec, too, so changing the Product to ARIA 1.1.

For clarity, the "Authors SHOULD" statement in the spec is fine. The "UAs MUST NOT map" is the problem. That's overly restrictive, and sets up ARIA to be a bottleneck for continued progress in host languages like HTML, particularly in Web Components where we fully expect web authors to move faster than spec authors or user agents.

James Craig, 26 Oct 2016, 07:02:58

Here's another non-Web Components example.

There are 79 matches in HTML Mapping for "No corresponding role." Should we really disallow use of role description on all of them? For example:

1. <code> Using an explicit ARIA role on <code> would cause the browser to lose functionality, but it'd be fine to define the role description on a per language basis: e.g. "CSS code sample", "Objective C code sample", etc. Sites like GitHub and Stack Overflow could even do this automatically on their language-formatted code samples. (e.g. "```js") How does it benefit us to take this possibility away from web authors?

2. <meter> Am I really not allowed to describe this meter just because ARIA hasn't gotten around to role parity yet?

3. <fieldset> Probably harmless to change the role description, but extremely harmful to require authors to explicitly use a different role in order to do so.

I can imagine some talented web authors in the near future saying, "I can technically make it operable, but I can't make it understandable because ARIA 1.1 required browsers to ignore my role description." Overly prescriptive regulations and limitations like this end up more harmful than helpful.

What if you only included this stipulation on generic elements like <div> and <span>? I'd be okay with that restriction. The goal seems to be to avoid problem cases like <div aria-roledescription="button"> and restricting usage on generics would be one way to do that, without penalizing appropriate use on another type of element.

James Craig, 27 Oct 2016, 05:49:36

Closing. Now tracked as GitHub #500.

James Craig, 14 Dec 2016, 08:03:52

Joanmarie Diggs <jdiggs@igalia.com>, James Nurthen <nurthen@adobe.com>, Chairs, Michael Cooper <cooper@w3.org>, Ruoxi Ran <ran@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.326 2018/10/13 17:29:51 vivien Exp $