EN
本內容沒有您的語言版本,但有英文版本。

ARIA Container Role Error

Text

Element with active-descendant defined does not have a container role (combobox, grid, listbox, menu, menubar, radiogroup, tree, treegrid, tablist, row).

Type

Error

Description

This error applies to elements that have the aria-activedescendant attribute.

An element appears to be a container that has the aria-activedescendant attribute set, but the element's role attribute doesn’t have a value that is valid for a container.

To fix this error, set the role attribute to a Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) role value that is valid for a container element: combobox, grid, listbox, menu, menubar, radiogroup, tablist, tree, or treegrid.

Example


<div role="listbox" id="listbox1" tabindex="0" aria-activedescendant="listbox1-1">
  <div role="option" id="listbox1-1" class="selected">Item 1</div>
  <div role="option" id="listbox1-2">Item 2</div>
  <div role="option" id="listbox1-3">Item 3</div>
  ...
<div>

Related topics

ARIA Role Error

 

 

社群新增項目

新增
顯示:
© 2014 Microsoft