开发者

WAI-Aria state for active widget

Is there a state to show that an widget is active. For example a user tab开发者_C百科s in a listbox and navigate with up and down keys through the items. Is there a state for the listbox that shows the user is in it?


No, generally the user agent would be able to determine that through the DOM and the focus or active events. If for some reason you were wanting to be inside a list but not focused on an item, you could set aria-selected to false.

http://www.w3.org/TR/wai-aria/states_and_properties#aria-selected


Checkout the wai-aria authoring guide for widgets. It will tell you what you need per widget. Depending on the widget you do want to set the tabindex and aria-selected among other things.

http://www.w3.org/TR/wai-aria-practices/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜