W3C home > Mailing lists > Public > public-aria@w3.org > September 2017

Re: Logic behind aria-required not being valid on role=checkbox?

From: Michiel Bijl <michiel.list@moiety.me>
Date: Mon, 18 Sep 2017 09:13:19 +0200
Cc: Bryan Garaventa <bryan.garaventa@levelaccess.com>, ARIA Working Group <public-aria@w3.org>
Message-Id: <B82EFD4C-0933-4F84-A962-2441C61ED9A9@moiety.me>
To: Matt King <a11ythinker@gmail.com>
It doesn’t follow the logic as described in the HTML spec[1] though. The value is never an empty string. Unless a checkbox’ value is an empty string when unchecked I don’t see how we can add this functionality to ARIA if it’s not in the HTML spec.

Perhaps I’m missing something here. 

1: https://w3c.github.io/html/sec-forms.html#the-required-attribute

— Michiel

> On 18 Sep 2017, at 08:47, Matt King <a11ythinker@gmail.com> wrote:
> 
> In the case described, the user interface is requiring a specific value. The question is whether ARIA should be able to help assistive technologies in a case like that. If the AT can identify required fields to the user, then, shouldn't the AT be enabled to identify the checkbox that requires user action in order for the user to proceed?
> 
> The definition of aria-required is:
> 
>> Indicates that user input is required on the element before a form may be submitted.
> 
> The checkbox Bryan describes meets that definition.
> 
> Matt
> 
> -----Original Message-----
> From: Michiel Bijl [mailto:michiel.list@moiety.me] 
> Sent: Sunday, September 17, 2017 11:20 PM
> To: Matt King <a11ythinker@gmail.com>
> Cc: Bryan Garaventa <bryan.garaventa@levelaccess.com>; ARIA Working Group <public-aria@w3.org>
> Subject: Re: Logic behind aria-required not being valid on role=checkbox?
> 
> Thing is that the checkbox can’t be required as such because it always has a value, it’s always 0 or 1. It’s never invalid. HTML required doesn’t dictate the final value. Neither should aria-required.
> 
> — Michiel
> 
>> On 18 Sep 2017, at 03:59, Matt King <a11ythinker@gmail.com> wrote:
>> 
>> That seems valid to me. Worth raising an issue.
>> 
>> Matt
>> 
>> -----Original Message-----
>> From: Bryan Garaventa [mailto:bryan.garaventa@levelaccess.com]
>> Sent: Friday, September 15, 2017 7:26 PM
>> To: ARIA Working Group <public-aria@w3.org>
>> Subject: Logic behind aria-required not being valid on role=checkbox?
>> 
>> Hi,
>> Somebody brought a use case to my attention today regarding the use of 
>> aria-required and role=checkbox, and it seems like a valid one, 
>> however aria-required doesn't appear to be supported on role=checkbox.
>> 
>> The use case being that of a License Agreement checkbox where, if the 
>> checkbox is not checked then the form will not submit, so technically 
>> interacting with the checkbox is required to proceed.
>> 
>> Would there be any interest in adding aria-required as a supported 
>> attribute of role=checkbox in this case?
>> 
>> Bryan Garaventa
>> Accessibility Fellow
>> Level Access, Inc.
>> Bryan.Garaventa@LevelAccess.com
>> 415.624.2709 (o)
>> www.LevelAccess.com
>> 
>> 
>> 
>> 
> 
> 
Received on Monday, 18 September 2017 07:13:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 18 September 2017 07:13:45 UTC