Re: Question about aria-roledescription in the 1.1 spec

On 2016-09-30 12:44 PM, Bryan Garaventa wrote:
> The use of aria-roledescription however is impossible to validate, because it can literally include anything, making it impossible to detect until after it hits production.
>

There are a couple of issues that can be validated:

  * the value should not be the empty string nor only whitespace characters.
  * User agents do not expose aria-roledescription if used on an element
    that does not have a valid role.

But, you are correct.  Use of this attribute requires QA.  But, that's
expected since the attribute is defined as, "... a human readable,
author localized description of the role ...".  It's not possible to
automate testing of human friendly strings that purport to describe the
role more meaningfully than the role value itself.  Perhaps, over time,
certain role descriptions will become the norm for given roles in a
context, and one could automatically check those descriptions.


-- 
;;;;joseph.

'Die Wahrheit ist Irgendwo da Draußen. Wieder.'
                 - C. Carter -

Received on Friday, 30 September 2016 17:27:24 UTC