Changeset 12281

Show
Ignore:
Timestamp:
02/04/08 14:03:30 (11 months ago)
Author:
becky
Message:

refs #5525 added waiState=haspopup-true to comboNode in combobox template. Added wai autocomplete property=list to comboNode in postCreate. Added wai expanded property to comboNode in _showDisplayList and _hideDisplayList. Need to confer with FF3 a11y dev. before closing the ticket.

Location:
dijit/trunk/form
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/ComboBox.js

    r12184 r12281  
    432432                                w: Math.max(newwidth, this.domNode.offsetWidth) 
    433433                        }); 
     434                        dijit.setWaiState(this.comboNode, "expanded", "true"); 
    434435                }, 
    435436 
     
    439440                                this._arrowIdle(); 
    440441                                this._isShowingNow=false; 
     442                                dijit.setWaiState(this.comboNode, "expanded", "false"); 
    441443                        } 
    442444                }, 
     
    657659                        if(label.length){ 
    658660                                label[0].id = (this.id+"_label"); 
    659                                 dijit.setWaiState(this.comboNode, "labelledby", label[0].id); 
    660                                 dijit.setWaiState(this.comboNode, "disabled", this.disabled); 
     661                                var cn=this.comboNode; 
     662                                dijit.setWaiState(cn, "labelledby", label[0].id); 
     663                                dijit.setWaiState(cn, "autocomplete", "list"); // FYI: different meaning that autocomplete property of combobox 
     664                                dijit.setWaiState(cn, "disabled", this.disabled); 
    661665                                 
    662666                        } 
  • dijit/trunk/form/templates/ComboBox.html

    r12028 r12281  
    11<div class="dijit dijitReset dijitInlineTable dijitLeft" 
    22        id="widget_${id}" 
    3         dojoAttachEvent="onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse" dojoAttachPoint="comboNode" waiRole="combobox" tabIndex="-1" 
     3        dojoAttachEvent="onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse" dojoAttachPoint="comboNode" waiRole="combobox" waiState="haspopup-true" tabIndex="-1" 
    44        ><div style="overflow:hidden;" 
    55                ><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'