Re: [ARIA] aria-disabled and child elements

Hi,

Related to this, I posted the following comment on http://crbug.com/467501:

I don't think that it is correct for a descendant to be able to
override the disabled state of an ancestor.

The spec says:
"The state of being disabled applies to the current element and all
focusable descendant elements of the element on which the
aria-disabled attribute is
applied."http://rawgit.com/w3c/aria/master/aria/aria.html#aria-disabled

I think the operative words are "state of being disabled".  This state
of being disabled applies to all focusable descendant elements, and
there is no stated qualification as to the state of being disabled
*not* applying to a descendant that specifies aria-disabled="false".

Note that aria-hidden is related to aria-disabled per the spec
(http://rawgit.com/w3c/aria/master/aria/aria.html#aria-hidden ).  With
the hidden state, a descendant cannot override an ancestor's state of
being hidden:
- https://www.w3.org/Bugs/Public/show_bug.cgi?id=26051
- https://www.w3.org/Bugs/Public/show_bug.cgi?id=26052



On Tue, Mar 17, 2015 at 10:31 AM, Alexander Surkov <
surkov.alexander@gmail.com> wrote:

> In general I don't mind about either way, but it looks a bit strange if
> disabled content contained not disabled elements. Thus I slightly prefer
> Firefox behavior.
>
> On Tue, Mar 17, 2015 at 4:06 AM, Steve Faulkner <faulkner.steve@gmail.com>
> wrote:
>
>> The spec says [1] that children of an element with aria-disabled=true
>> will inherit the disabled state
>>
>> In this example[3] the link is flagged as disabled (in Firefox)
>>
>> <div aria-disabled="true">
>>   <a id="link1" href="#">link</a>
>> </div>
>>
>> In this example the checboxes are flagged as disabled (in Firefox), note
>> the 2nd checkbox has aria-disabled=false set.
>>
>> <div role="group" aria-label="disabled fieldset" aria-disabled="true">
>>   <input type="checkbox"><br>
>>   <input type="checkbox" aria-disabled="false">
>> </div>
>>
>> question:
>>
>> In example 2 above, should the checkbox with aria-disabled=false override
>> the disabled=true flag of its parent?
>>
>> [1] http://rawgit.com/w3c/aria/master/aria/aria.html#aria-disabled
>> [2] https://code.google.com/p/chromium/issues/detail?id=467501
>> [3] working example http://codepen.io/stevef/pen/PwxjpY
>> --
>>
>> Regards
>>
>> SteveF
>> HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
>>
>
>

Received on Saturday, 2 May 2015 11:58:53 UTC