You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the `disabled` attribute on any element that is allowed the `disabled` attribute in HTML.
3649
3653
</p>
3650
3654
<p>
3651
-
Authors MAY use the <adata-cite="wai-aria-1.2#aria-disabled">`aria-disabled`</a> attribute on any element that is allowed the `disabled` attribute in HTML, or any element with a WAI-ARIA role which allows the `aria-disabled` attribute</a>.
3655
+
Authors MAY use the <adata-cite="wai-aria-1.2#aria-disabled">`aria-disabled`</a> attribute on any element that is allowed the `disabled` attribute in HTML,
3656
+
or any element with a WAI-ARIA role which allows the `aria-disabled` attribute</a>.
3652
3657
</p>
3653
3658
<p>
3654
3659
Authors SHOULD NOT use `aria-disabled="true"` on any element which also has a `disabled` attribute.
Authors MAY use the <adata-cite="wai-aria-1.2#aria-hidden">`aria-hidden`</a> attribute on any HTML element that allows <adata-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a>, with the following exception:
3675
+
Authors MAY use the <adata-cite="wai-aria-1.2#aria-hidden">`aria-hidden`</a> attribute on any HTML element that allows <adata-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a> to
3676
+
be specified, with the exception of focusable elements and the <ahref="#el-body">`body`</a> element.
3671
3677
</p>
3672
3678
<p>
3673
-
Authors SHOULD NOT use the `aria-hidden="true"` attribute on any element which also has a `hidden` attribute.
3674
-
</p>
3675
-
3676
-
<!-- this will be covered as part of issue 221 -->
3677
-
<!-- <p>
3678
-
Authors MUST NOT use `aria-hidden="true"` on an element that can receive keyboard focus, or on an ancestor element to an element or elements which can receive keyboard focus.
3679
+
It is generally NOT RECOMMENDED for authors to use `aria-hidden="true"` on any element which also has the `hidden` attribute specified. However, authors MUST NOT use `aria-hidden="true"` on any element which also has the `hidden` attribute specified in the `until-found` state.
3679
3680
</p>
3680
-
<p>
3681
-
Any elements which can receive keyboard focus, interactive elements or otherwise, MUST have their ability to receive keyboard focus removed while the `aria-hidden="true"` attribute is present. For instance, by using `tabindex="-1"` on any focusable elements with `aria-hidden="true"`, or setting `tabindex="-1"` to focusable elements that are descendants of an `aria-hidden="true"` containing element.
3682
-
</p> -->
3681
+
<divclass="note">
3682
+
A focusable element is any element which can be focused by use of keyboard or pointer device. Focusable elements are not always elements which
3683
+
can be tabbed to via a keyboard. For instance, an element with `tabindex="-1"` is focusable but is not a tabbable element.
3684
+
</div>
3685
+
<divclass="note">
3686
+
Using `aria-hidden="true"` on an element that has the `hidden` attribute is at best an unnecessary redundancy. At worst its usage can
3687
+
prevent access to the content if the `hidden` attribute's default UA style of `display: none` has been purposeuflly overwritten by an author or user style sheet.
3688
+
Finally, if the `hidden` attribute has the value of `until-found`, the use of `aria-hidden=true` will prevent this content from being discoverable to users of assistive
3689
+
technology when it is found via a browser's in-page find feature and visually rendered to users.
Authors MAY use the <adata-cite="wai-aria-1.2#aria-placeholder">`aria-placeholder`</a> attribute on any element that is allowed the `placeholder` attribute in HTML, or any element with a WAI-ARIA role which allows the `aria-placeholder` attribute.
3706
+
Authors MAY use the <adata-cite="wai-aria-1.2#aria-placeholder">`aria-placeholder`</a> attribute on any element that is allowed the `placeholder` attribute in HTML,
3707
+
or any element with a WAI-ARIA role which allows the `aria-placeholder` attribute.
3699
3708
</p>
3700
3709
<p>
3701
3710
Authors MUST NOT use the `aria-placeholder` attribute on any element which also has a `placeholder` attribute.
0 commit comments