aria-expanded 和 aria-haspopup 属性是否适用于 <select /> 元素?

Does the aria-expanded and aria-haspopup attributes apply to <select /> elements?

来自 W3C wiki

When authors use collapsible content, for example, to hide navigation menus or lists of content, the triggering link or button should indicate to screen reader users whether the collapsable content below is in the expanded or in the collapsed state. The aria-expanded attribute is used for this purpose.

这是否包含 <select> 元素,还是仅用于导航项?

The select element 可以接受任何全局 aria-* 属性,以及适用于角色列表框的任何 aria 属性。

aria-haspopup is allowed for any role, and aria-expanded 允许列表框角色。

请注意,浏览器应该已经定义了 default implicit semantic,因此您不必关心定义 aria 属性来定义 select 控件的状态,如果您重新使用原生元素。