javascript - What is the meaning of 'role','title','alt' in DOJO Mobile -
i dojo fresher, here mobile application developed dojo mobile.
and found can't work when open ios voiceover.
the data-dojo-type="dojox/mobile/scrollableview" component can't scroll more.
i checked dojo website , found solution(https://dojotoolkit.org/reference-guide/1.10/dojox/mobile/faq.html):
how develop applications support ios voiceover?
to set alt, title , role attributes. voiceover read widgets these attributes set. see tests/test_a11y.html examples. however, value of spinwheel can not read voiceover in 1.8.make sure
follow guide visited page tests/test_a11y.html(https://github.com/dojo/dojox/blob/master/mobile/tests/test_a11y.html) , find code include alt,title,role attributes:
here question: what's meaning of these 3 attributes,can add attributes every dojo components in code?and how decide value of these attributes?
and found tests/test_a11y.html dojo components include role attribute others include three.it makes me confusing...:
here code ,how reform it:
<div data-dojo-type="dojox/mobile/contentpane" id="receiptsattach" class="receipts"> <div id="receiptsattachcontent" data-dojo-attach-point="datacontent" data-dojo-type="dojox/mobile/scrollableview" class="selectcontent"></div> <div style="clear:both;"></div> </div></div>
for title: https://developer.mozilla.org/en-us/docs/web/html/global_attributes/title
contains text representing advisory information related element belongs to. such information can typically, not necessarily, presented user tooltip.
for alt: https://developer.mozilla.org/en-us/docs/web/html/attributes
alternative text in case image can't displayed.
for role, aria role. can see: https://developer.mozilla.org/en-us/docs/web/accessibility/aria
the role attribute defines general type of object (such article, alert, or slider)
a list of roles can found here: http://www.w3.org/tr/wai-aria/roles#abstract_roles
Comments
Post a Comment