#18591 closed defect (fixed)
CheckBox: (incorrectly) sets both disabled and aria-disabled
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9.8 |
Component: | Dijit | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Calling set("disabled", true) on a dijit checkbox, sets both a disabled and aria-disabled attribute on the focus element. This leads to the following RPT (http://www-03.ibm.com/able/news/WAI_ARIAatIBM.html) violation:
Use the HTML5 attribute OR the associated WAI-ARIA attribute (not both) on any one input element. CI162 Checkpoint 3.3b
The particular code is in _FormWidgetMixin:
_setDisabledAttr: function(/*Boolean*/ value){ this._set("disabled", value); domAttr.set(this.focusNode, 'disabled', value); if(this.valueNode){ domAttr.set(this.valueNode, 'disabled', value); } this.focusNode.setAttribute("aria-disabled", value ? "true" : "false");
Change History (4)
comment:1 Changed 6 years ago by
Milestone: | tbd → 1.9.8 |
---|---|
Status: | new → assigned |
comment:2 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
_FormWidgetMixin sets both
disabled
andaria-disabled
to handle both whenthis.focusNode
is an<input>
, and when it's a plain<span>
. So it should be changed to set one or the other, depending on the type of this.focusNode.